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

Improve nigiri generated footpaths durations #706

Open
Pycpik opened this issue Jan 20, 2025 · 3 comments
Open

Improve nigiri generated footpaths durations #706

Pycpik opened this issue Jan 20, 2025 · 3 comments

Comments

@Pycpik
Copy link

Pycpik commented Jan 20, 2025

Hi,

We would like to improve the footpaths suggested by MOTIS.

The pedestrian times calculated by nigiri (GTFS or generated) are regularly too shorts compared to reality. The use of OSR footpaths seems to have better durations but does not always work.

As discussed with @felixguendling on Matrix, two fast improvments could be made:

I create this issue to track possible improvements.

Thank you

@felixguendling
Copy link
Member

felixguendling commented Jan 22, 2025

I created a first version: https://github.com/motis-project/motis/releases/tag/v2.0.14

New configuration options - those are only active with osr_footpath=true:

  • timetable.extend_missing_footpaths - adds footpaths from the default footpaths but calculates footpath length based on 0.7m/s (use true to try it)
  • timetable.use_osm_stop_coordinates - updates stop coordinates according to the stop object matched in OSM (probably you want false)

Then when routing use:

  • useRoutedTransfers=true to enable the osr_footpaths
  • pedestrianProfile=FOOT (which is the default value, so you can also omit it)

Looking forward to your feedback!

@Pycpik
Copy link
Author

Pycpik commented Jan 29, 2025

Hi,

We've tested the 2.0.14 with osr_footpaths=trueand useRoutedTransfers=true.

Functionally, the routes are different but relevant. However I could not find any case with no itineraries in the MOTIS response although we found some the first time we tried useRoutedTransfers.

In load testing, we saw an increase in average response time of 45% (330 ms to 480ms) but we have to do more tests to find out where it comes from.

We still have to test timetable.extend_missing_footpaths=true.

@felixguendling
Copy link
Member

felixguendling commented Jan 29, 2025

I would recommend to turn on timetable.extend_missing_footpaths=true unless you know that all stops are modeled perfectly and in a osr compatible way in OSM. Having less transfers due to modeling problems in OSM can explain differences in routing times.

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

No branches or pull requests

2 participants