Menu

#624 Routing along service instead along motorway

HEAD
open
nobody
Routing (39)
7
2013-03-10
2013-03-10
Martin
No

When calculating a short route
from www.openstreetmap.org/?mlat=48.03317&mlon=11.4292&zoom=16
a few hundret meters to the north at http://www.openstreetmap.org/?mlat=48.0407&mlon=11.43729&zoom=16
the route goes along the highway=service instead of the highway=motorway.
The motorway has maxspeed=none the highway=service is set to 30kmh in the style file.

In this case the route should go along the motorway.

Discussion

  • Martin

    Martin - 2013-03-10
    • summary: Routing along service instead along motorwa --> Routing along service instead along motorway
     
  • Martin

    Martin - 2013-03-16

    Lately I had a 700 km route mostly over motorways and this problems happened maybe 10 times.
    I never never understood the routing code itself.
    But your patch to store the speed in the way descriptions sound interesting.
    I wouldn't be mind, if this would remove the possibility to load older map formats this time.
    One idea from me would be to memorize the way id exiting a route node during route calculation. This shouldn't be very memory intensive, since loading route tiles needs most of the memory.

     
  • sk750

    sk750 - 2013-03-16

    The routing code is split between calculating the route nodes used on the route path with the A* algorithm (Routing.java) and determining the ways between those route nodes (RouteLineProducer).

    I'll not be able to work on a big change to GpsMid like the patch anytime in the near future. If you or anybody else wants to go for it, this would be great. I do agree this change is too big to try to keep map format compatibility this time but rather all existing backward compatibility code could be dropped after this step as well.

     

Log in to post a comment.