Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Geocode failed


From   Sui Zhang <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Geocode failed
Date   Wed, 3 Apr 2013 16:35:16 +0000

Hi to all,

Does geocode work for everyone? Please give me some advice. Thank you!

(1) The command "geocode" returns in "610" (over the limit) for all records every day from day 1. 

(2) Then I tried the following:
foreach i of numlist 1/3 {
       local a=address[`i']
       copy "http://maps.googleapis.com/maps/api/geocode/json?address=`a'&sensor=true" "c:\temp\tmpgm`i'.txt", replace
}
but then stata errors with code "672" for "server refused to send file".

(3) Single command line, such as: 
copy "http://maps.googleapis.com/maps/api/geocode/json?address=`60611'&sensor=false" "c:\temp\tmpgm.txt", replace
would save a ".txt" file, but with "ZERO_RESULTS"

Many thanks!
--
Sui Zhang

Feinberg School of Medicine 
Northwestern University

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index