Skip to content
Back to formatted view

Raw Message

Message-ID: <1299605415770-6131592.post@n2.nabble.com>
Date: 2011-03-08T17:30:15Z
From: Robert J. Hijmans
Subject: package to query Google for latitude and longitude for a given ZIP code
In-Reply-To: <AANLkTik_rhVzb4yzxxN7n0uX2W3VzeCVMeKv-nAr+Xvd@mail.gmail.com>

>Hi, I was wondering if someone could direct me to a package that would 
>allow you to query Google (or any other resource) for the latitude and 
>longitude of a ZIP code. 

You can try the 'geocode' function in the dismo package. 

> geocode('03861')
     ID      lon      lat   lonmin    lonmax   latmin   latmax
[1,]  1 -71.0169 43.11589 -71.0731 -70.96072 43.08175 43.17245
> 

Robert

--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/package-to-query-Google-for-latitude-and-longitude-for-a-given-ZIP-code-tp6130598p6131592.html
Sent from the R-sig-geo mailing list archive at Nabble.com.