Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: Geocode failed


From   Sui Zhang <sui-zhang@northwestern.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index