Hi everyone!

I do some contributions to OSM and wonder why it’s not building “shortest” possible way (marked as green?

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

I try OsmAnd+ but didn’t really like it 😥

Upd: Path is diffenetley mapped

Thanks

P.S. The BENCH IS DIFFENETLY NOT ON THE WAY

  • balsoft@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    1 hour 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.

  • balsoft@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 hour ago

    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.

  • mogoh@lemmy.ml
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    6 hours ago

    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.
    • iuvi@lemmy.caOP
      link
      fedilink
      arrow-up
      5
      ·
      6 hours ago

      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

      • balsoft@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        2 hours ago

        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.

  • Courant d'air 🍃@jlai.lu
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    7 hours ago

    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

    • iuvi@lemmy.caOP
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      7 hours 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

  • PierceTheBubble@lemmy.ml
    link
    fedilink
    arrow-up
    7
    ·
    7 hours ago

    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. ;)

  • onlinepersona@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 hours ago

    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.