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

Add waypoints parameter to viaroute API #5345

Merged
merged 8 commits into from
Jan 25, 2019
Merged

Conversation

danpat
Copy link
Member

@danpat danpat commented Jan 23, 2019

Issue

This adds a waypoints= parameter to the viaroute plugin, similar to the one on the match plugin.

What does it do? In a nutshell, it lets you suppress depart/arrive instructions for some waypoints. This is helpful if you want to provide some coordinates to guide the path the route takes, but don't want them to be announced as waypoints.

Tasklist

Requirements / Relations

Link any requirements here. Other pull requests this PR is based on?


When I route I should get
| waypoints | route |
| a,b,c | abc,abc |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let’s also test the case where the waypoint is located at an intersection and the route ends up making a non-obvious turn at that intersection; we’d expect the route to contain a maneuver at that point, rather than eliding it completely.

@danpat danpat merged commit 381d492 into master Jan 25, 2019
@mcwhittemore mcwhittemore deleted the danpat_viaroute_waypoints branch January 25, 2019 18:27
datendelphin added a commit to fossgis-routing-server/osrm-backend that referenced this pull request Nov 19, 2020
  - Changes from 5.21.0
    - Build:
      - ADDED: optionally build Node `lts` and `latest` bindings [Project-OSRM#5347](Project-OSRM#5347)
    - Features:
      - ADDED: new waypoints parameter to the `route` plugin, enabling silent waypoints [Project-OSRM#5345](Project-OSRM#5345)
      - ADDED: data timestamp information in the response (saved in new file `.osrm.timestamp`). [Project-OSRM#5115](Project-OSRM#5115)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants