Description Usage Arguments Value Note
Pair origins with destinations
1 | get_od_pairs(origins, destinations, d_limit = Inf)
|
origins |
A |
destinations |
A |
d_limit |
Upper distance limit (as-the-crow-flies) in meters to pair
an origin with a destination. Defaults to |
A data.table
object containing one
origin-destination pair per row. The table has six columns named from,
to, from_lon, from_lat, to_lon and to_lat, with the first two
containing the indices of respectively the origin and destination, and the
latter four containing their coordinates.
Coordinates should be expressed in coordinate reference system EPSG:4326. The function assumes this to be true, and does not check for it.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.