Examples for car and bike are in the repo: https://github.com/DennisOSRM/Project-OSRM/tree/master/profiles
The foot profile is also there, although less worked through. Testbot.lua is a simply profile used for testing purposes. Med venlig hilsen Emil Tin IT- og Processpecialist Trafik _______________________________ KØBENHAVNS KOMMUNE Teknik- og Miljøforvaltningen Byens Anvendelse Njalsgade 13 Vær. 118 Postboks 380 2300 København S Direkte 2369 5986 Mobil 2369 5986 Email [email protected]<mailto:[email protected]> EAN 5798009493149 [cid:[email protected]]<http://www.sharingcopenhagen.dk/> Fra: Anael Lorimier [mailto:[email protected]] Sendt: 13. maj 2014 10:54 Til: Mailing list to discuss Project OSRM Emne: Re: [OSRM-talk] Preferring motorways for a route Hi there, I also need to change my lua profile and I'm kinda stuck on how to do this. Without wiki, some example should at least be really useful to understand how are construct lua profiles, if one could find some. Regards. On Tue, May 13, 2014 at 10:06 AM, Emil Tin <[email protected]<mailto:[email protected]>> wrote: You cannot change route type at run time. But if you want you can run several instances of osrm-routed in parallel, each computing a different type of route. Of course this requires more resource and time for preprocessing data. To compute a different type of route, like preferring motorways you basically need to: • Modify car.lua to prefer motorway, or otherwise change the way types are handled according to your needs • Preprocess OSM data using your custom car.lua profile • Run osrm-routed to handle requests, passing in your preprocessed data I agree a good wiki page on how to write lua profiles is missing. Med venlig hilsen Emil Tin IT- og Processpecialist Trafik _______________________________ KØBENHAVNS KOMMUNE Teknik- og Miljøforvaltningen Byens Anvendelse Njalsgade 13 Vær. 118 Postboks 380 2300 København S Direkte 2369 5986 Mobil 2369 5986 Email [email protected]<mailto:[email protected]> EAN 5798009493149 [cid:[email protected]]<http://www.sharingcopenhagen.dk/> Fra: John Aherne [mailto:[email protected]<mailto:[email protected]>] Sendt: 13. maj 2014 09:57 Til: osrm-talk Emne: [OSRM-talk] Preferring motorways for a route Once again thanks for a really useful project. I have been going through the archives to see if this subject has come up before. I must admit I expected to see more questions about this. But I have only found 1 oblique reference to being able to force a route to use motorways for a journey when it is possible. And I must admit I did not understand what it was referring to. It seemed to imply that a simple tag passed in to a request would do the trick. Now I think I must somehow change the car profile to make this happen. But I do not see much information on where I should start and whether this has been done before and I just have not been able to find it. Any help would be most appreciated. Thanks John Aherne _______________________________________________ OSRM-talk mailing list [email protected]<mailto:[email protected]> https://lists.openstreetmap.org/listinfo/osrm-talk -- Cordialement Anael Lorimier Developer Junior XCG Consulting Mobile: (+33)652567117
_______________________________________________ OSRM-talk mailing list [email protected] https://lists.openstreetmap.org/listinfo/osrm-talk
