[OSRM-talk] Preferring motorways for a route

2014-05-13 Thread John Aherne
Emil Thanks for the detail on car.lua. That is very helpful. I am not very knowledgeable on linux, especially on developing stuff, so bear with me. I have already built an instance of osrm-route and have it running on debian-wheezy and Ubuntu 12.0.4. I followed the instructions in building and

Re: [OSRM-talk] Preferring motorways for a route

2014-05-13 Thread Emil Tin
The lua scripts parses the various OSM tags and returns a single value: the speed. OSRM uses this speed as the only deciding factor (in addition to the length of the ways) when computing routes. So all you need to do is set the speed high on motorway (say 100 km/h), and low on all other types

Re: [OSRM-talk] Preferring motorways for a route

2014-05-13 Thread Stephen Woodbridge
Emil, I think the question is more along the lines of "How would one change the car.lua to make ORSM prefer highways?" For example, should one increase the speeds on highways and/or decrease the on surface streets and feeder roads? This has the side effect of then not reporting accurate time

[OSRM-talk] Preferring motorways for a route

2014-05-13 Thread John Aherne
Thanks for the link. It is the one I found before so good news there. I'll need to find some more info to work out exactly what is going on and what bits I will need to change. Regards John Aherne ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org

Re: [OSRM-talk] Preferring motorways for a route

2014-05-13 Thread Emil Tin
it's right here: https://github.com/DennisOSRM/Project-OSRM/blob/develop/profiles/car.lua On 13 May 2014, at 17:38 , John Aherne wrote: > Thanks for the replies. > > I'll also take a look at the repo and see if they tell me what I need to do. > > Although I did find via google a car.lua an

[OSRM-talk] Preferring motorways for a route

2014-05-13 Thread John Aherne
Thanks for the replies. I'll also take a look at the repo and see if they tell me what I need to do. Although I did find via google a car.lua and could not see any obvious way to prefer motorways. But I'll look again and see what I overlooked. Thanks John Aherne ___

Re: [OSRM-talk] Preferring motorways for a route

2014-05-13 Thread Emil Tin
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 ___

Re: [OSRM-talk] Preferring motorways for a route

2014-05-13 Thread Anael Lorimier
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 wrote: > You cannot chan

Re: [OSRM-talk] Preferring motorways for a route

2014-05-13 Thread Emil Tin
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

[OSRM-talk] Preferring motorways for a route

2014-05-13 Thread John Aherne
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