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

Allow excluding ferries on bicycle profile #5054

Merged
merged 3 commits into from
Apr 26, 2018
Merged

Allow excluding ferries on bicycle profile #5054

merged 3 commits into from
Apr 26, 2018

Conversation

TheMarex
Copy link
Member

@TheMarex TheMarex commented Apr 24, 2018

Issue

This PR allows excluding ferries for bicycle routes. This is not enabled by default, just another option for the bicycle profile. A side-effect is that we now also return classes for the bicycle profile which is helpful for navigation.

Tasklist

@TheMarex TheMarex requested a review from chaupow April 24, 2018 16:00
@TheMarex TheMarex self-assigned this Apr 24, 2018
Copy link
Member

@chaupow chaupow left a comment

Choose a reason for hiding this comment

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

looks great


When I route I should get
| from | to | route | turns | classes |
| a | d | road,road | depart,arrive | [(),(tunnel),()],[()] |

This comment was marked as resolved.


When I route I should get
| from | to | route | turns | classes |
| a | h | ab,df,df,fh,fh | depart,roundabout-exit-2,exit roundabout slight right,notification straight,arrive | [()],[(),()],[(ferry)],[()],[()] |

This comment was marked as resolved.

@chaupow
Copy link
Member

chaupow commented Apr 26, 2018

I checked how much memory increases if you add ferry exclusion:

Shard CH with ferries CH with exclude ferries increase in %
americas 31519 MB 31837 MB 1%
africa eurasia 74613 MB 75600 MB 1.3%

@TheMarex TheMarex merged commit 6843eb1 into master Apr 26, 2018
@TheMarex TheMarex deleted the bike/no_ferries branch April 26, 2018 19:46
@chaupow
Copy link
Member

chaupow commented Apr 27, 2018

Ran the same measurements on MLD datasets

Shard MLD with ferries MLD with exclude ferries increase in %
americas 31210 MB 34145 MB 9.4%
africa eurasia 73619 MB 80124 MB 8.8%

@TheMarex

datendelphin added a commit to fossgis-routing-server/osrm-backend that referenced this pull request Jun 10, 2018
Release OSRM 5.18.0

Changes from 5.17.0:
- Features:
  - ADDED: `table` plugin now optionally returns `distance` matrix as part of response [Project-OSRM#4990](Project-OSRM#4990)
  - ADDED: New optional parameter `annotations` for `table` that accepts `distance`, `duration`, or both `distance,duration` as values [Project-OSRM#4990](Project-OSRM#4990)
- Infrastructure:
  - ADDED: Updated libosmium and added protozero and vtzero libraries [Project-OSRM#5037](Project-OSRM#5037)
  - CHANGED: Use vtzero library in tile plugin [Project-OSRM#4686](Project-OSRM#4686)
- Profile:
  - ADDED: Bicycle profile now returns classes for ferry and tunnel routes. [Project-OSRM#5054](Project-OSRM#5054)
  - ADDED: Bicycle profile allows to exclude ferry routes (default to not enabled) [Project-OSRM#5054](Project-OSRM#5054)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants