Ok, thanks for the fast reply, I'll check it out! Met vriendelijke groeten
Jorne De Blaere jorne.debla...@conundra.eu +32 485 57 02 08 Guldensporenpark 120, BE 9820 Merelbeke Willem Alexanderlaan 45, NL-4532 DB Terneuzen www.conundra.eu -----Oorspronkelijk bericht----- Van: Patrick Niklaus [mailto:patrick.nikl...@student.kit.edu] Verzonden: vrijdag 8 mei 2015 15:55 Aan: Mailing list to discuss Project OSRM Onderwerp: Re: [OSRM-talk] alter speed profile You can just add an if condition here https://github.com/Project-OSRM/osrm-backend/blob/develop/profiles/car.lua#L300 that checks if highway ~= "motorway" or something and then sets maxspeed = -1 On Fri, May 8, 2015 at 3:44 PM, Jorne De Blaere <jorne.debla...@conundra.eu> wrote: > Patrick, > > I tried by deleting the whole if else condition and setting it to > result.forward_speed = highway _speed result.backward_speed = highway > _speed > > still highway is not "the highway" but all roads. > Is there is way of limiting only one type of road. For example, in Belgium > trucks are limited in speed on highways (90km/h) while the max on hightways > is 120km/h. The other types of road should stay the same as the tag provided > by osm. > > Kind regards, > > Jorne De Blaere > > jorne.debla...@conundra.eu > +32 485 57 02 08 > Guldensporenpark 120, BE 9820 Merelbeke Willem Alexanderlaan 45, > NL-4532 DB Terneuzen www.conundra.eu > > > -----Oorspronkelijk bericht----- > Van: Patrick Niklaus [mailto:patrick.nikl...@student.kit.edu] > Verzonden: vrijdag 8 mei 2015 15:28 > Aan: Mailing list to discuss Project OSRM > Onderwerp: Re: [OSRM-talk] alter speed profile > > If you always want to disregard the maxspeed tag just set: > > result.forward_speed = highway _speed > result.backward_speed = highway _speed > > On Fri, May 8, 2015 at 11:36 AM, Jorne De Blaere <jorne.debla...@conundra.eu> > wrote: >> Hey Simon, >> >> Still no luck here. If I have an answer I let you know. >> >> >> >> Kind regards, >> >> Jorne >> >> >> >> Van: simone zanda [mailto:zand...@hotmail.it] >> Verzonden: vrijdag 8 mei 2015 11:16 >> >> >> Aan: Mailing list to discuss Project OSRM >> Onderwerp: Re: [OSRM-talk] alter speed profile >> >> >> >> Hello . I have the same problem . >> >> If you work , can you help ? >> >> >> >> Il giorno 07/mag/2015, alle ore 14:28, Jorne De Blaere >> <jorne.debla...@conundra.eu> ha scritto: >> >> >> >> Hey, >> >> >> >> Thanks for the quick reply. I checked it out and changed >> >> >> >> if max_speed and max_speed > highway_speed then >> >> result.forward_speed = max_speed >> >> result.backward_speed = max_speed >> >> else >> >> result.forward_speed = highway_speed >> >> result.backward_speed = highway_speed >> >> end >> >> >> >> >> >> To: >> >> >> >> >> >> if max_speed and max_speed > highway_speed then >> >> result.forward_speed = highway _speed >> >> result.backward_speed = highway _speed >> >> else >> >> result.forward_speed = max_speed >> >> result.backward_speed = max_speed >> >> end >> >> >> >> But now i have a giant traveling time, any sugestions on this? >> >> >> >> Kind regards, >> >> Jorne >> >> >> >> >> >> Van: Patrick Niklaus [mailto:patrick.nikl...@student.kit.edu] >> Verzonden: donderdag 7 mei 2015 12:44 >> Aan: Mailing list to discuss Project OSRM >> Onderwerp: Re: [OSRM-talk] alter speed profile >> >> >> >> Hey, >> >> if the way has a `max_speed` tag this value is used instead, see here: >> https://github.com/Project-OSRM/osrm-backend/blob/develop/profiles/ca >> r >> .lua#L303 >> >> Best, >> >> Patrick >> >> >> >> On Thu, May 7, 2015 at 10:00 AM, Jorne De Blaere >> <jorne.debla...@conundra.eu> wrote: >> >> Hey guy’s, >> >> >> >> I’m trying to alter the lua file so that I can limit the speed on highways. >> >> Is there anyone that can point me in the right direction? I tried so >> by altering the speed_profile in the car.lua file from GitHub. >> (["motorway"] = >> 45) (line 15) in the car.lua file but that has no effect on the travel time. >> So I guess that there is something else but I don’t know what >> >> Met vriendelijke groeten >> >> >> >> Jorne De Blaere >> >> jorne.debla...@conundra.eu >> >> >> >> I >> >> +32 485 57 02 08 >> >> Guldensporenpark 120 >> >> >> >> I >> >> BE 9820 Merelbeke >> >> Willem Alexanderlaan 45 >> >> >> >> I >> >> NL-4532 DB Terneuzen >> >> www.conundra.eu >> >> Dit bericht is onderworpen aan de voorwaarden beschikbaar op onze >> website >> >> Ce message est soumis aux conditions disponibles sur notre site web >> >> This message is subject to the terms and conditions available on our >> website >> >> >> >> >> _______________________________________________ >> OSRM-talk mailing list >> OSRM-talk@openstreetmap.org >> https://lists.openstreetmap.org/listinfo/osrm-talk >> >> >> >> _______________________________________________ >> OSRM-talk mailing list >> OSRM-talk@openstreetmap.org >> https://lists.openstreetmap.org/listinfo/osrm-talk >> >> >> >> >> _______________________________________________ >> OSRM-talk mailing list >> OSRM-talk@openstreetmap.org >> https://lists.openstreetmap.org/listinfo/osrm-talk >> > > _______________________________________________ > OSRM-talk mailing list > OSRM-talk@openstreetmap.org > https://lists.openstreetmap.org/listinfo/osrm-talk > _______________________________________________ > OSRM-talk mailing list > OSRM-talk@openstreetmap.org > https://lists.openstreetmap.org/listinfo/osrm-talk _______________________________________________ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk _______________________________________________ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk