[OSRM-talk] Preferring motorways for a route
Emil Tin
ZF0F at tmf.kk.dk
Tue May 13 08:56:57 UTC 2014
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
zf0f at tmf.kk.dk<mailto:zf0f at tmf.kk.dk>
EAN
5798009493149
[cid:image001.gif at 01CF6E9A.0EC898C0]<http://www.sharingcopenhagen.dk/>
Fra: Anael Lorimier [mailto:anael.lorimier at xcg-consulting.fr]
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 <ZF0F at tmf.kk.dk<mailto:ZF0F at tmf.kk.dk>> 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
zf0f at tmf.kk.dk<mailto:zf0f at tmf.kk.dk>
EAN
5798009493149
[cid:image001.gif at 01CF6E9A.0EC898C0]<http://www.sharingcopenhagen.dk/>
Fra: John Aherne [mailto:jjaherne at gmail.com<mailto:jjaherne at gmail.com>]
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
OSRM-talk at openstreetmap.org<mailto:OSRM-talk at openstreetmap.org>
https://lists.openstreetmap.org/listinfo/osrm-talk
--
Cordialement
Anael Lorimier
Developer Junior
XCG Consulting
Mobile: (+33)652567117
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20140513/1e0d53e4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 4037 bytes
Desc: image001.gif
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20140513/1e0d53e4/attachment-0001.gif>
More information about the OSRM-talk
mailing list