dkahle / ggmap

A package for plotting maps in R with ggplot2
766 stars 231 forks source link

Vector of coordinates in mapdist() function #310

Closed fgoerlich closed 1 year ago

fgoerlich commented 4 years ago

Hi, According to the documentation I can use vectors (of addresses) in the mapdist() function (page 41 of version 3.0.0) and also I can include geographic coordinates (page 42). But I haven´t found a way to include vectors of coordinates in the mapdist() function, since the onlye example I have found only considers a pair of coordinates (numeric of length = 2). Is there a way to pass many coordinates as origins and many coordinates as destination at the same time or I have to loop over the mapdist() function? Thanks a lot.