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

Henrik Bengtsson hb at stat.berkeley.edu
Fri Sep 7 01:40:42 CEST 2007


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

>
>                                 cheers,
>
>                                         Rolf
>
> ######################################################################
> Attention:\ This e-mail message is privileged and confidenti...{{dropped}}
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list