Re: [R] Retrieving latitude and longitude via Google Maps API

2010-03-17 Thread Greg Snow
You may want to look at http://www.openstreetmap.org/ or http://maps.cloudmade.com/ instead of google maps. I don't know if they give the same detail/searches, but open source sites tend to be easier to work with and have fewer restrictions on use. While I like the google maps, I tend to not

Re: [R] Retrieving latitude and longitude via Google Maps API

2010-03-16 Thread hadley wickham
>>> Does anyone have any experience retrieving latitutde and longitude for >>> an address from the Google Maps API? > > This thread from r-sig-geo may be of interest: > https://stat.ethz.ch/pipermail/r-sig-geo/2010-March/thread.html#7788 In particularly, note that what you are doing is against the

Re: [R] Retrieving latitude and longitude via Google Maps API

2010-03-16 Thread Michael Denslow
Hi Benjamin, > > On Tue, 16 Mar 2010, Nutter, Benjamin wrote: > >> Does anyone have any experience retrieving latitutde and longitude for >> an address from the Google Maps API? This thread from r-sig-geo may be of interest: https://stat.ethz.ch/pipermail/r-sig-geo/2010-March/thread.html#7788 Ho

Re: [R] Retrieving latitude and longitude via Google Maps API

2010-03-16 Thread Phil Spector
Benjamin - Perhaps this will get you started: addr = '1600 Pennsylvania Avenue, Washington, DC' url = paste('http://maps.google.com/maps/api/geocode/xml?address=', + addr,'&sensor=false',sep='') library(XML) doc = xmlTreeParse(url) root = xmlRoot(doc) lat = xmlValue(root[['resu