[R] computing distance in miles or km between 2 street addre

Marc Schwartz marc_schwartz at comcast.net
Fri Sep 7 01:56:43 CEST 2007


On Thu, 2007-09-06 at 16:40 -0700, Henrik Bengtsson wrote:
> On 9/6/07, Rolf Turner <r.turner at auckland.ac.nz> wrote:
> >
> > On 7/09/2007, at 10:17 AM, (Ted Harding) wrote:
> >
> > > On 06-Sep-07 18:42:32, Philip James Smith wrote:
> > >> Hi R-ers:
> > >>
> > >> I need to compute the distance between 2 street addresses in
> > >> either km or miles. I do not care if the distance is a "shortest
> > >> driving route" or if it is "as the crow flies."
> > >>
> > >> Does anybody know how to do this? Can it be done in R? I have
> > >> thousands of addresses, so I think that Mapquest is out of the
> > >> question!
> > >>
> > >> Please rely to: philipsmith at alumni.albany.edu
> > >>
> > >> Thank you!
> > >> Phil Smith
> > >
> > > That's a somewhat ill-posed question! You will for a start
> > > need a database of some kind, either of geographical locations
> > > (coordinates) of street addresses, or of the metric of the
> > > road network with capability to identify the street addresses
> > > in the database.
> >
> >         <snip>
> >
> > >
> > >                                  As far as I know, R has no
> > > database relevant to street addresses!
> >
> >
> >         But Ted!  Don't you know that statistics in general and R in
> > particular are
> >         supposed to be able to ***work MAGIC***???  :-) :-) :-)
> 
> Wow! I didn't know that. What's the function call?
> 
> /Henrik

  stats:::Supercalifragilisticexpialidocious()

;-)

Cheers,

Marc



More information about the R-help mailing list