Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osrmRoute get route waypoints #39

Closed
obhakim opened this issue Dec 18, 2018 · 1 comment
Closed

osrmRoute get route waypoints #39

obhakim opened this issue Dec 18, 2018 · 1 comment

Comments

@obhakim
Copy link

obhakim commented Dec 18, 2018

Hi, there is any method to get the center point of route or to get all waypoints [lat, lng] of a route ??

2018-12-18_112304

@rCarto
Copy link
Member

rCarto commented Dec 18, 2018

Try osrmRoute(..., sp=FALSE) , the output is a data.frame of the waypoints.
It is in the documentation (?osrmRoute) :

If sp is FALSE, a data frame is returned. It contains the longitudes and latitudes of the travel path between the two points.

@rCarto rCarto closed this as completed Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants