Description Usage Arguments Value Author(s) References Examples

This function add de distance and duration of the Shortest Path Between Two Points. Its use the osrmRoute function of osrm library, that build and send an OSRM API query to get the travel geometry between two points. This function interfaces the route OSRM service. The principal contribution to this function it´s yo consider the CRS of the input coordinates, and only output the distance and time variables of the procedure.

1 | ```
byosrmRoute(src_dst, crs)
``` |

`src_dst` |
Dataframe with four variables: x of source, y of source, x of destination, y of destination. x and y are plain coordinates in the defined CRS |

`crs` |
Coordinate Reference Systems (CRS). |

Return a DataFrame with:

`src_dst` |
The input DataFrame with 2 new variables "distance" in meters and "duration" in minutes |

Detomasi, Richard

Timothée Giraud [cre, aut], Robin Cura [ctb], Matthieu Viry [ctb] 2017 osrm: Interface Between R and the OpenStreetMap-Based Routing Service OSRM. https://CRAN.R-project.org/package=osrm

1 2 3 4 | ```
## The function is currently defined as
byosrmRoute(src_dst, crs)
{
}
``` |

RichDeto/EPP documentation built on Aug. 25, 2018, 3:18 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.