[OSRM-talk] osrm rail extract & lua content
hofmann at mapbox.com
Wed Sep 23 14:55:20 UTC 2015
Take a look at the way function. This is a callback that is called from
OSRM on every way:
If you follow e.g. the highway variable through the code, you should get a
rough sense of how filtering and settings speed values works.
Just in case you want to trace it back to where we dispatch based on the
OSM type, this is the exact location where the callbacks are getting
On Mon, Sep 21, 2015 at 10:37 PM, Luc Van Linden <luc.vanlinden at gmail.com>
> Hi Patrick
> Thanks for your input.
> The ambition as such is not to perform railway routing as such, just to
> get an understanding on how to take a class subset into account for
> profile.lua file.
> In other words, suppose we only want to perform routing using the
> moterways only explicitly (thus have only the motorways in the graph).
> What are actually the statements in the lua file which will select only
> those osm ways to be incorporated in the osrm graph?
> On Mon, Sep 21, 2015 at 10:20 PM, Patrick Niklaus <
> patrick.niklaus at student.kit.edu> wrote:
>> That profile is very much outdated. Note the year of the post: 2013.
>> Try to copy the current car.lua and strip it down. You should be able
>> to adapt this profile easily. That said: OSRM is _really_ not suited
>> for railway routing:
>> 1. We don't support time table based routing (e.g. there is not 'time'
>> in OSRMs data model)
>> 2. There is nothing stoping OSRM from computing impossible train
>> connections that require changing the train 10 times
>> 3. For good train routing you would want to integrate multi-modal
>> routing (e.g. connect train stations by foot paths) which is also
>> hard with OSRM
>> On Mon, Sep 21, 2015 at 6:32 PM, Luc Van Linden <luc.vanlinden at gmail.com>
>> > Hi
>> > We have been trying to test OSRM on the railway lines in Belgium. (on
>> > windows using the windows binary builds)
>> > The full belgian osm file works with the standard profile.lua (car
>> > profile). We can run extract, prepare and run.
>> > When we try to use a railway profile, osrm.extract stops working.
>> > We have used the following thread without succes:
>> > https://email@example.com/msg00320.html
>> > So not clear if we have sufficient things covered in the lua file for
>> > extract.
>> > tx
>> > Luc
>> > _______________________________________________
>> > OSRM-talk mailing list
>> > OSRM-talk at openstreetmap.org
>> > https://lists.openstreetmap.org/listinfo/osrm-talk
>> OSRM-talk mailing list
>> OSRM-talk at openstreetmap.org
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OSRM-talk