[OSRM-talk] Comparing OSRM with the car routing by OpenTripPlanner
Dear all, I am comparing two routing machines: openTriplanner and OSRM on the OSM map of Québec city (Canada) when looking for the best route by car. I get very puzzling differences, just running the default versions and configurations of OSRM and OTP for these coordinates: origin 46.793187,-71.183014 destination 46.770641,-71.285499 at 8am, mode car. The best route by OSRM is a 16km (18min) long, while the OTP recommandation is a 20km (24min) one. Google map recommends the 20km one (21min), the 16km road having a duration of 25 min. The 20km route goes along a highway, while the 16km one uses a primary road, I don't get why OSRM thinks this road is faster, while OTP points the opposite. Are you able to reproduce this discrepancy? Does that make sense to you? Thanks, Xavier -- *Xavier Prudent * *Data Scientist - Data Mining - Machine Learning* Web:* www.xavierprudent.com <http://www.xavierprudent.com>* Tel (Québec) : (514) 668 76 46 Skype : xavierprudent ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
Re: [OSRM-talk] pont de Québec not in the routing steps of OSRM
Dear Daniel, Thank you for this quick and detailed answer, I will proceed using well know nodes then. Take care, Xavier Le lun. 2 nov. 2020 à 19:39, Daniel Patterson via OSRM-talk < osrm-talk@openstreetmap.org> a écrit : > The "steps" that OSRM emits are roughly intended to be human consumable > instructions. We often collapse "obvious" maneuvers where it'd be annoying > to receive a visual/verbal prompt. For this reason, "steps" aren't great > objects to use for data analysis, unless you're specifically interested in > the heuristics of ideal navigation instructions. > > The alternative I'd suggest would be to find a couple of OSM node IDs that > are on the way you're interested in, and use the `annotations=nodes` > parameter to return the list of nodes along the path - search that list for > your well-known-nodes and you should have confirmation that a path > traversed the geometry you care about. > > daniel > > On Mon, Nov 2, 2020 at 2:12 PM Xavier Prudent > wrote: > >> Dear OSRMers, >> >> I use OSRM to determine through which bridge a car would cross the river >> St Laurent in Quebec city (Canada). >> When running on the default OSM map, and using steps=true in the API >> call, >> >> curl -s >> http://127.0.0.1:4040/route/v1/driving/-71.2429112,46.7469116;-71.3315801,46.7701873?steps=true&annotations=true&overview=full >> >> I get all steps and street names for the itinerary, except for the Pont >> of Québec. When doing the same with openTripPlanner I find its name in the >> steps sequence. >> >> Why cannot I see this bridge in the OSRM routing steps? >> >> Thank you, >> >> regards, >> >> Xavier Prudent >> >> >> -- >> >> *Xavier Prudent * >> >> *Data Scientist - Data Mining - Machine Learning* >> >> Web:* www.xavierprudent.com <http://www.xavierprudent.com>* >> Tel (Québec) : (514) 668 76 46 >> Skype : xavierprudent >> >> >> ___ >> 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] pont de Québec not in the routing steps of OSRM
Dear OSRMers, I use OSRM to determine through which bridge a car would cross the river St Laurent in Quebec city (Canada). When running on the default OSM map, and using steps=true in the API call, curl -s http://127.0.0.1:4040/route/v1/driving/-71.2429112,46.7469116;-71.3315801,46.7701873?steps=true&annotations=true&overview=full I get all steps and street names for the itinerary, except for the Pont of Québec. When doing the same with openTripPlanner I find its name in the steps sequence. Why cannot I see this bridge in the OSRM routing steps? Thank you, regards, Xavier Prudent -- *Xavier Prudent * *Data Scientist - Data Mining - Machine Learning* Web:* www.xavierprudent.com <http://www.xavierprudent.com>* Tel (Québec) : (514) 668 76 46 Skype : xavierprudent ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
[OSRM-talk] Option to add buffer time for the trasnfer?
Dear OSRMers, Is there an option to add buffer time to transfer along a route? If I have such a pattern: bus > walk > bus I may want to increase the transfer time to take into account the possible delay of the bus. Is that possible? Xavier -- *Xavier Prudent * *Data Scientist - Data Mining - Machine Learning* Web:* www.xavierprudent.com <http://www.xavierprudent.com>* Tel (Québec) : (514) 668 76 46 Skype : xavierprudent ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
[OSRM-talk] Any existing tool to digest OSRM navi data?
Dear all, Under the option steps=true, osrm returns the detailed list of turn by turn steps along the itinerary. Does any tool already exist that can understand and display such information? Regards, Xavier -- *Xavier Prudent * *Data Scientist - Data Mining - Machine Learning* Web:* www.xavierprudent.com <http://www.xavierprudent.com>* Tel (Québec) : (514) 668 76 46 Skype : xavierprudent ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
[OSRM-talk] Weird behaviour of Turn-restriction in OSRM
Dear all, This is my first project with OSRM and OSM. I experience a very troubling behaviour of the turn restriction with osrm. I edit an osm map and want to remove any possible u-turn or left turn. If you look at this map, and look for the point #22 https://civiliagroupeconseil-my.sharepoint.com/:u:/g/personal/xprudent_civilia_ca/EXFdH132gY1Pk38xz54uN08BL87-xayY1WC7jLMTP9axHQ?e=UkCpL6 I give you here a zoom on the Rue Perras. You can see a u-turn is done on this street by osrm https://civiliagroupeconseil-my.sharepoint.com/:i:/g/personal/xprudent_civilia_ca/ETEmfFrTyIdGrWPwALg-jNMBLhFNB78b068x8ceNRqOw5g?e=YA8dOT But the rue Perras in the JOSM editor forbids left turns, as shown here https://civiliagroupeconseil-my.sharepoint.com/:u:/g/personal/xprudent_civilia_ca/Ef2rIh5MZ1VNnxrLxcTUkwgB1lJ0d_rTPcfBTH94I3BzCg?e=pd09Va and adding u-turns don't change anything. That is troubling as this procedure works on many intersections, but not for a couple of others ?!? Here is the OSM map I edit https://civiliagroupeconseil-my.sharepoint.com/:u:/g/personal/xprudent_civilia_ca/Ef2rIh5MZ1VNnxrLxcTUkwgB1lJ0d_rTPcfBTH94I3BzCg?e=StlweD Being a newbie, I must have overlooked something important. Thanks in advance, Regards, Xavier -- *Xavier Prudent * *Data Scientist - Data Mining - Machine Learning* Web:* www.xavierprudent.com <http://www.xavierprudent.com>* Tel (Québec) : (514) 668 76 46 Skype : xavierprudent ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
Re: [OSRM-talk] U-turn penalty?
Dear all, As a follow-up on my question, for anyone facing the issue: my way out of this question of forbidding u-turns has been to get a local version of the OSM map and to edit it using JOSM. I then applied detailed constraints using the turnrestriction plugin. Good luck! Regards, Xavier Prudent 2018-04-23 18:17 GMT-04:00 Xavier Prudent : > Hello, > > I want to forbid u-turns during the routing. > I hence played with the u_turn_penalty parameter in profiles/car.lua > > u_turn_penalty = 20, > > then reconstructed the osrm objects using osrm-extract and osrm-contract. > I tried values 0, 20, 240 and 1000. The routing clearly changed, but I > keep on getting u-turns. For higher parameters I even get more u-turns. > > My understanding was that the higher the parameter, the less u-turn one > should have. > > Did I understand correctly? How can I forbid u-turn then? > > Regards, > > Xavier > > -- > > *Xavier Prudent * > > *Data Scientist - Data Mining - Machine Learning* > > Web:* www.xavierprudent.com <http://www.xavierprudent.com>* > Tel (Québec) : (514) 668 76 46 > Skype : xavierprudent > > > -- *Xavier Prudent * *Data Scientist - Data Mining - Machine Learning* Web:* www.xavierprudent.com <http://www.xavierprudent.com>* Tel (Québec) : (514) 668 76 46 Skype : xavierprudent ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
Re: [OSRM-talk] U-turn penalty?
Hello Daniel, Thank you for this fast answer. Is that then possible to forbid left turns? Our group may then want to implement this uturn restriction, are there still active developers on osrm? Regards, Xavier Le lun. 23 avr. 2018 à 18:27, Daniel Patterson a écrit : > Hi Xavier, > > This u-turn penalty only applies to what you might call "direct u-turns" > - those that occur on a single line feature, like at the end of a > cul-de-sac. > > Unfortunately, for u-turns between divided roads, this penalty value > isn't applied - OSRM treats those as two consecutive left turns (or right > turns, depending on your country). > > There's an open ticket about this problem: > https://github.com/Project-OSRM/osrm-backend/issues/4368, but nobody has > really looked into fixing it yet. > > daniel > > On Mon, Apr 23, 2018 at 3:17 PM, Xavier Prudent > wrote: > >> Hello, >> >> I want to forbid u-turns during the routing. >> I hence played with the u_turn_penalty parameter in profiles/car.lua >> >> u_turn_penalty = 20, >> >> then reconstructed the osrm objects using osrm-extract and osrm-contract. >> I tried values 0, 20, 240 and 1000. The routing clearly changed, but I >> keep on getting u-turns. For higher parameters I even get more u-turns. >> >> My understanding was that the higher the parameter, the less u-turn one >> should have. >> >> Did I understand correctly? How can I forbid u-turn then? >> >> Regards, >> >> Xavier >> >> -- >> >> *Xavier Prudent * >> >> *Data Scientist - Data Mining - Machine Learning* >> >> Web:* www.xavierprudent.com <http://www.xavierprudent.com>* >> Tel (Québec) : (514) 668 76 46 >> Skype : xavierprudent >> >> >> >> ___ >> 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] U-turn penalty?
Hello, I want to forbid u-turns during the routing. I hence played with the u_turn_penalty parameter in profiles/car.lua u_turn_penalty = 20, then reconstructed the osrm objects using osrm-extract and osrm-contract. I tried values 0, 20, 240 and 1000. The routing clearly changed, but I keep on getting u-turns. For higher parameters I even get more u-turns. My understanding was that the higher the parameter, the less u-turn one should have. Did I understand correctly? How can I forbid u-turn then? Regards, Xavier -- *Xavier Prudent * *Data Scientist - Data Mining - Machine Learning* Web:* www.xavierprudent.com <http://www.xavierprudent.com>* Tel (Québec) : (514) 668 76 46 Skype : xavierprudent ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
[OSRM-talk] Can osrm accept very local routing modifications?
Dear all, If somewhere in my city there is a very special and dangerous crossing, which cannot be identified by a general criteria like "no u-turn at a street", is that possible to provide osrm with very local parametrization like "no u-turn at the crossing between Wash. Bd. and East Road" ? Thanks in advance, regards, Xavier -- *Xavier Prudent * *Data Scientist - Data Mining - Machine Learning* Web:* www.xavierprudent.com <http://www.xavierprudent.com>* Tel (Québec) : (514) 668 76 46 Skype : xavierprudent ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
Re: [OSRM-talk] Does osrm-routing deal only with ordered points
Thank you Nico and Daniel, I guess that is so far all I need, I will now dig through the exemples. BTW, the level of development & documentation of osrm is quite impressive. Regards, Xavier 2018-03-13 18:59 GMT-04:00 Nico Aymet : > Yes, you are right. > I'm sorry I give you an old link, here the current version documentation: > http://project-osrm.org/docs/v5.15.2/api/#trip-service > > The route service finds the fastest route between coordinates *in the > supplied order*. > > The trip plugin solves (try to) the *Traveling Salesman Problem. *(I > think it's what you need) > Please keep in mind the roundtrip option (route returns to first location) > In the last version there are two new option source/destination if you > want to fix the first and the last point and reorder the others, otherwise > the service use the supplied points in any order to reach the goal. (please > follow the supported combinations of roundtrip, source and destination > according to the table) > > Rgds > > Nico Aymet > > 2018-03-13 22:38 GMT+00:00 Xavier Prudent : > >> Hello Nico, >> >> Thanks for that fast answer, >> So if I understand well, the route service expects an order, while the >> trip service can estimate this order, right? >> >> Regards, >> Xavier >> >> 2018-03-13 18:28 GMT-04:00 Nico Aymet : >> >>> Hi Xavier, >>> you can use the trip service: >>> >>> http://project-osrm.org/docs/v5.5.1/api/#trip-service >>> >>> Rgds >>> >>> Nico Aymet >>> >>> 2018-03-13 22:09 GMT+00:00 Xavier Prudent : >>> >>>> Dear all, >>>> >>>> Given 4 points A,B,C,D >>>> osrm makes a nice job searching for a route that goes through >>>> A->B->C->D. >>>> >>>> Is that also able to estimate the optimal ordering, not necessarily the >>>> given one? >>>> >>>> Regards, >>>> >>>> Xavier >>>> >>>> -- >>>> >>>> *Xavier Prudent * >>>> >>>> *Data Scientist - Data Mining - Machine Learning* >>>> >>>> Web:* www.xavierprudent.com <http://www.xavierprudent.com>* >>>> Tel (Québec) : (514) 668 76 46 >>>> Skype : xavierprudent >>>> >>>> >>>> >>>> ___ >>>> 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 >>> >>> >> >> >> -- >> >> *Xavier Prudent * >> >> *Data Scientist - Data Mining - Machine Learning* >> >> Web:* www.xavierprudent.com <http://www.xavierprudent.com>* >> Tel (Québec) : (514) 668 76 46 >> Skype : xavierprudent >> >> >> >> ___ >> 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 > > -- *Xavier Prudent * *Data Scientist - Data Mining - Machine Learning* Web:* www.xavierprudent.com <http://www.xavierprudent.com>* Tel (Québec) : (514) 668 76 46 Skype : xavierprudent ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
Re: [OSRM-talk] Does osrm-routing deal only with ordered points
Hello Nico, Thanks for that fast answer, So if I understand well, the route service expects an order, while the trip service can estimate this order, right? Regards, Xavier 2018-03-13 18:28 GMT-04:00 Nico Aymet : > Hi Xavier, > you can use the trip service: > > http://project-osrm.org/docs/v5.5.1/api/#trip-service > > Rgds > > Nico Aymet > > 2018-03-13 22:09 GMT+00:00 Xavier Prudent : > >> Dear all, >> >> Given 4 points A,B,C,D >> osrm makes a nice job searching for a route that goes through A->B->C->D. >> >> Is that also able to estimate the optimal ordering, not necessarily the >> given one? >> >> Regards, >> >> Xavier >> >> -- >> >> *Xavier Prudent * >> >> *Data Scientist - Data Mining - Machine Learning* >> >> Web:* www.xavierprudent.com <http://www.xavierprudent.com>* >> Tel (Québec) : (514) 668 76 46 >> Skype : xavierprudent >> >> >> >> ___ >> 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 > > -- *Xavier Prudent * *Data Scientist - Data Mining - Machine Learning* Web:* www.xavierprudent.com <http://www.xavierprudent.com>* Tel (Québec) : (514) 668 76 46 Skype : xavierprudent ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
[OSRM-talk] Does osrm-routing deal only with ordered points
Dear all, Given 4 points A,B,C,D osrm makes a nice job searching for a route that goes through A->B->C->D. Is that also able to estimate the optimal ordering, not necessarily the given one? Regards, Xavier -- *Xavier Prudent * *Data Scientist - Data Mining - Machine Learning* Web:* www.xavierprudent.com <http://www.xavierprudent.com>* Tel (Québec) : (514) 668 76 46 Skype : xavierprudent ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk
[OSRM-talk] Left/Right side of the street?
Dear all, Being a newcomer in OSRM, my question may sound naive : When requiring for a route between 3 points A, B, C, in a drive-on-the-right country. Can OSRM take into account the fact that B may be on the left side of the way? Thanks, regards, Xavier -- *Xavier Prudent * *Data Scientist - Data Mining - Machine Learning* Web:* www.xavierprudent.com <http://www.xavierprudent.com>* Tel (Québec) : (514) 668 76 46 Skype : xavierprudent ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk