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]
Re: st: new geocode command on ssc
From
Stefan Bernhard <[email protected]>
To
statalist <[email protected]>
Subject
Re: st: new geocode command on ssc
Date
Tue, 21 May 2013 07:54:14 +0200
Hi Darren,
please make sure that the addresses in address(varname) do not contain
any blanks or special characters.
Blanks should be replaced with "+", special characters with something
useful (like "ss" for "ß"), as documented in -help geocode3-.
I added a line that asserts that and replaces blanks if needed (not
special signs because there are just too many to control for and I
don't even know which ones are rejected by Stata in other languages
than German). However, until that is online replace your blanks with
replace varname= subinstr(varname, " ", "+",.)
Another thing i found out is that my standard formatting of %12.9f of
the output g_lat and g_lon variables is messy for some values e.g. the
Australien coordinates, change it to something better like %12.9g and
it displays correctly (the values are right anyway, just the display
is off).
regards
Stefan
2013/5/20 Darren White <[email protected]>:
> Hi Stefan
>
> The geocode routine doesn't like Australian addresses. Any tips appreciated
>
> regards
>
> Darren
>
>>>> Stefan Bernhard <[email protected]> 5/20/2013 3:34 pm >>>
> Hello fellow statlist-subscribers,
>
> there is a new command on ssc
>
> -geocode3-
>
> which uses Google Geocode API V3 to get coordinates from addresses, or
> addresses from coordinates.
>
> Please let me know if you encounter any problems with the program.
>
> Stefan Bernhard
> *
> * 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/
>
>
> ********************************************************************************
> This email, including any attachments sent with it, is confidential and for the sole use of the intended recipient(s). This confidentiality is not waived or lost, if you receive it and you are not the intended recipient(s), or if it is transmitted/received in error.
> Any unauthorised use, alteration, disclosure, distribution or review of this email is strictly prohibited. The information contained in this email, including any attachment sent with it, may be subject to a statutory duty of confidentiality if it relates to health service matters.
> If you are not the intended recipient(s), or if you have received this email in error, you are asked to immediately notify the sender by telephone collect on Australia +61 1800 198 175 or by return email. You should also delete this email, and any copies, from your computer system network and destroy any hard copies produced.
> If not an intended recipient of this email, you must not copy, distribute or take any action(s) that relies on it; any form of disclosure, modification, distribution and/or publication of this email is also prohibited.
> Although Queensland Health takes all reasonable steps to ensure this email does not contain malicious software, Queensland Health does not accept responsibility for the consequences if any person's computer inadvertently suffers any disruption to services, loss of information, harm or is infected with a virus, other malicious computer programme or code that may occur as a consequence of receiving this email.
> Unless stated otherwise, this email represents only the views of the sender and not the views of the Queensland Government.
> **********************************************************************************
>
>
> *
> * 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/
*
* 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/