Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.36k stars 3.37k forks source link

Support OSMLR location referencing for traffic #3751

Open danpat opened 7 years ago

danpat commented 7 years ago

Mapzen just did everyone a favour and did the hard work of taking the ideas from OpenLR and making a spec for OSM data:

https://mapzen.com/blog/open-traffic-osmlr-technical-preview/

Having worked with TMC and OpenLR closely, this approach seems pretty sane - it's a hard problem and there's no magic solution.

There are a few ways we could go about this:

OSMLR (and OpenLR that it's based on) supports filtering on criteria that we currently don't store data for - road classes (highway/residential/etc), road types (roundabouts, sliproads, normal). Direct support for OSMLR would depend on availability of some of these extra attributes.

drewda commented 7 years ago

FYI, we've just published another technical preview post: https://mapzen.com/blog/osmlr-2nd-technical-preview/ Includes information on how to access a preview build of OSMLR segment tile files with global coverage.

Glad to see you all are considering ways to make use of OSMLR in OSRM!

amirmasud commented 5 years ago

Hi friends! Is there any plan to support OSMLR or OpenLR? I think it's a missing part to enrich the OSRM with traffic data. Is there any OpenLR encoder/decoder for OSRM (OSM) segments?

Thanks a lot!

SamuelBrucksch commented 1 year ago

This is quite old but still relevant. I would be interested in a proper solution here too.

nilsnolde commented 1 year ago

I'm curious: is there any data source actually implementing OSMLR? OpenTraffic is unfortunately pretty dead, same as Mapzen. Or you're curious about OpenLR support? The latter I've done before with Valhalla. I don't think OSRM can support any linear referencing scheme really in its current state (directly or indirectly), since all the "route"-defining attributes are missing in OSRM (as @danpat describes above, nothing changed there).

EDIT: it can be very indirectly supported by using Valhalla to match the OpenLR.

SamuelBrucksch commented 1 year ago

My understanding was that openLR and osmlr is quite similar so if one works it should probably possible to support the other one too.