This one is probably of interest to Stata nerds only, so I’ll put it below the fold.
I knew that in the future computers would be taking more and more jobs in the knowledge economy, but I didn’t know that I’d be helping them do it. In the upcoming Stata Journal I have a paper with a coauthor that lets Stata query Google Maps in order to find latitude and longitude for addresses or other locations, also known as geocoding. What makes this useful is that you can have weird formatting, spelling errors, or missing information in your address or location variable and the program can still geocode it as well as Google Maps can place it on a map. This is a big improvement over standard geocoders that you’d use in, for instance, ArcGIS, which can be sensitive to spelling mistakes and often requires addresses to be extensively “cleaned” before they can be geocoded successfully. This is the part that means less work for research assistants.
In addition, in the paper we detail another Stata program that allows you calculate travel time or distance between two points as Google Maps would report if you used it to find direction. Just like with Google maps you can specify mode choice, including walking, driving, and when available public transportation. Many social scientists use distance between points in their research but unless they have access to GIS programs they are forced to use as-the-crow-flies distances. Now any Stata user can get travel times and distances, by mode, for free.
You can find the Stata Journal article detailing these programs here or by typing “findit geocode” in Stata.

7 comments
Comments feed for this article
Monday ~ March 21st, 2011 at 10:38 am
James
Cool! I was going to have to code something like this myself.
Monday ~ March 21st, 2011 at 1:44 pm
Joe Messina
If you are interested, I can send you a graph that shows the variation in travel times as calculated from google vs an arc/gis network model implementation for the state of Michigan – it’s more interesting and different than you might guess.
Monday ~ March 21st, 2011 at 3:47 pm
Evan Roberts
Thank you! This article alone has justified my subscription to the Stata Journal for the last few years.
Monday ~ March 21st, 2011 at 11:44 pm
Sohier
This makes me all the more curious about which ads you host on this blog. Mostly because they’re in German even though I’m in San Francisco. Ironic much?
Tuesday ~ March 22nd, 2011 at 9:37 am
D
Looks like this violates google’s Terms of Service:
“Note: the Geocoding API may only be used in conjunction with a Google map; geocoding results without displaying them on a map is prohibited. For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions.”
Tuesday ~ March 22nd, 2011 at 10:16 am
Barry
Adam, this is sweeeeeeeeeeeeeeeeeet! Thanks for mentioning it.
Joe, I’d be interested in that, as well – I’ll contact you directly.
Tuesday ~ March 22nd, 2011 at 1:32 pm
David
Awesome! Adam, this is so cool — I just downloaded the Stata file minutes ago!