all 21 comments

sorted by: hot top controversial new old
[–] 21 points 6 months ago

Guess: Junctions are weighted.

There's an extra junction on the green route. Junctions often add delays when giving way to traffic, so the algorithm may choose routes with fewer.

  • source
  • [–] 13 points 6 months ago* (1 child)

    I'd say it depends on the heuristic of the path planning algorithm, eg. if road surface is taken into account and the road it chose is asphalt while the other one is dirt then that path makes sense.

    What application are you using to find this path? OSM in itself doesn't do path planning if I'm not wrong, it's just the map's structured data

  • source
  • hideshow 1 child comment
  • [–] [S] 4 points 6 months ago*

    Yes, there's a dirt, but in another place not specified , but still, it does not put way... i also selected a line where OSM do lay path on - and it just same as mine 1:1 by parameters

    Logic of algorithm quite strange. It's not an option of user somehow? Like i don't mind if there's a dirt, i just want cut my way to get faster from point A to point B

  • source
  • parent
  • [–] 10 points 6 months ago* (last edited 6 months ago) (3 children)

    So, two things are to consider here:

    1. Is the underlying OSM mapping data correct? This is something we can not deduct from the screenshot. If it is not to privacy violating you might share the exact location.
    2. Is the routing algorithm working correctly? Once we made sure that the underlying data is correct, we can see, if it is working. Then we could file a bug report if still something is off.
  • source
  • hideshow 3 child comments
  • [–] [S] 6 points 6 months ago (2 children)

    I will share locations after ~7 days, will see if time load\change things a bit first For now bicycle on that trail works ok, but when i change to "walk" it does path that showed on picture, despite i added tag for trail walk - yes, bicycles - yes

  • source
  • parent
  • hideshow 2 child comments
  • [–] 12 points 6 months ago* (1 child)

    I've managed to locate the exact place from the screenshot (there was enough identifying info for an overpass query so you might want to consider improving opsec if it's a privacy concern).

    I think the reason why walking prefers to go the long way around is because the path parallel to the secondary road is marked as highway=footway, and walking algorithms generally prefer those over other types of paths. It is assumed that highway=footway is tended to and therefore more pleasant/fast to walk on compared to a general highway=path, which is just something that is maintained naturally because of people walking there. I guess surface=mud on the shorter path might also play into it - routers will generally penalize worse surfaces and instead suggest you to walk on firmer ones.

    If that shorter path is actually "official" in some way and is pleasant to walk on, consider changing it to highway=footway, otherwise the router is probably behaving correctly by not sending you down a muddy shortcut.

  • source
  • parent
  • hideshow 1 child comment
  • [–] [S] 1 point 6 months ago

    It's quite wierd because sometimes ppl prefer shortest route despite surface and so on... Sad there's no ability to turn on "ignore paths and show shortest way"

  • source
  • parent
  • [–] 8 points 6 months ago (2 children)

    It always takes a few minutes for the map to render the updates (and often requires you to clear the cache: on the browser at least). For the routing to take the new path into consideration, it usually takes about a day or something, so I wouldn't be waiting for that; just try again tomorrow and it should work. ;)

  • source
  • hideshow 2 child comments
  • [–] 7 points 6 months ago

    Left turns may have a higher cost for routing than right turns because of turn on red laws.

  • source
  • [–] 7 points 6 months ago

    As for the actual question at hand: don't rely too much on OSRM. It's just the "default" router, and there are many others out there. E.g. both Valhalla and Graphhopper suggest the shorter route in pedestrian mode.

  • source
  • [–] 6 points 6 months ago* (4 children)

    Also, will OSM - OrganicMaps\CoMaps will introduce any time soon ability for public transport routes?

    I don't think there are any current plans for it. It's actually really difficult to get right.

    OsmAnd kinda cheats and doesn't have any scheduling information, basically it assumes that the transit comes often enough that it doesn't matter, which is fine in bigger cities. However, if your bus comes only twice a day it will be an issue.

    There's an open-source app for public transit called Bimba. It is a bit janky, and it requires you to be online for proper routing, but it does work for many cities. It still needs a lot of polishing before I'd consider it done, and actually I'd love for it to just become an OsmAnd plugin at some point.

  • source
  • hideshow 4 child comments
  • [–] [S] 1 point 6 months ago (3 children)

    How about Gnome-Maps? Ppl say they works prety well but only on linux

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 6 months ago (2 children)

    It uses Transitous, the same routing engine as Bimba. So yes, it should work fine if you're on Linux.

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 1 point 6 months ago (1 child)

    I mean, yeah, but why Organic Maps or CoMaps not take Transitous\Bimba and put it over on existing maps?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 6 months ago*

    I would not wanna turn left on what may be a blind intersection. If that parallel road you're turning left on is 4 lanes of traffic I'm taking easier right of way.

    Edit: also if your destination is immediately across from a 3 way its safest to turn left into it as opposed to crossing two right of ways

  • source
  • [–] 2 points 6 months ago (2 children)

    Which direction is the path? If it's marked as a one-way road, it may not consider it. Or, as somebody else pointed out, the routing application might not have the up to date map. Give it a day or so.

  • source
  • hideshow 2 child comments