[R-sig-Geo] address to lat/long
Tomislav Hengl
hengl at spatial-analyst.net
Thu Oct 13 16:56:24 CEST 2011
Erin,
An example how to geocode address in R is given at:
http://spatial-analyst.net/wiki/index.php?title=Mapping_research_hot-spots#Geocoding_addresses
You might also want to take a look at rjson functionality
[http://code.google.com/apis/maps/documentation/geocoding/] e.g.:
> library(rjson)
> library(RCurl)
> googleurl <-
url("http://maps.googleapis.com/maps/api/geocode/json?latlng=29.763159,-95.359386&sensor=false")
> fromJSON(file=googleurl)[["results"]][[1]][["formatted_address"]]
[1] "1 Main St, Houston, TX 77002, USA"
T. Hengl
http://www.wewur.wur.nl/popups/vcard.aspx?id=HENGL001
On 11-10-2011 20:50, Hodgess, Erin wrote:
> Dear R Sig Geo People:
>
> Is there a function in the various geo packages that will take an address and produce lat/long values, please?
>
> thanks,
> Erin
>
>
> Erin M. Hodgess, PhD
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: hodgesse at uhd.edu
>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
More information about the R-sig-Geo
mailing list