Replies: 1 comment
-
|
Got it, here’s the reply draft to that message, without em dashes: Great framing on the free flow / slowdown factor decomposition. That’s actually the cleanest way to think about it conceptually, and it maps well onto how you’d implement this technically. The two approaches you identified are both viable, but they differ significantly in pipeline fit. Option A: Tag the OSM source, update the Lua profile Option B: Segment speed CSV via osrm-customize For a once-a-year or once-a-month batch run, Option B with MLD is probably the right architecture. You extract and partition once, then re-run osrm-customize with each speed vintage (freeflow, AM peak, PM peak) in minutes rather than re-extracting the whole graph. On the free flow framing specifically What does your speed data look like structurally, and what’s the primary join key? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a monitor that will calculate the average travel time from 115000 points in the Netherlands to their nearest amenity of certain types, eg primary school, supermarket etc to get an idea of the relative remoteness of places. (pretty much an updated version of my earlier work 10 years ago https://github.com/WorldBank-Transport/ram-backend/blob/v0.1.0/README.md )
However this time I'd like to use the average car and bike speeds for road segments, instead of the posted max speed, or inferred speed based on the type of road. I have this information for (nearly) all roads both for rush hour and free flow. I am wondering what the best approach would be to embed this information into the OSRM network.
Looking at the car profile and the extract workflow it seems to me it should be done either at the OSM source file (eg setting a new tag on each segment with the average speed) and update the car.lua file to accept the new tag as preferred speed or with a separate lookup file that gives the speeds for segment IDs. I remember that back in the day this approach was investigated, but I do not see any mention of it so it might have come to nothing.
It is very much not a realtime speed routing solution I'm looking for. The calculations will be done once a year or maybe once a month so extensive preprocessing is not a big issue, though quicker is better of course. Having two separate models for rush hour and freeflow traveltimes is neither an issue (knowing that OSRM doesn't understand time based speeds)
Beta Was this translation helpful? Give feedback.
All reactions