Opened 13 years ago

Closed 11 years ago

#40 closed enhancement/feature request (fixed)

Routing for different vehicles (car,bus,bicycle,foot) wanted

Reported by: hafting Owned by: KaZeR
Priority: major Milestone: version 0.2.0
Component: core Version:
Severity: Keywords:
Cc:

Description (last modified by KaZeR)

Navit currently routes cars. Still, it directed me to use a bus-only road.

Different modes for different uses would be nice.

  • car: Use all roads open to cars, and prefer the best

roads

  • bus: allow bus-only roads as well, otherwise as for cars
  • bus,truck: Avoid roads(bridges etc.) with weight/sizerestrictions. Vehicle weight and size should be configurable.
  • bicycle: prefer cycleways, disallow motorways
  • foot: prefer footways, disallow motorways

Attachments (2)

delme (3.1 KB) - added by pavelmachek.livejournal.com 12 years ago.
delme.2 (9.5 KB) - added by pavelmachek.livejournal.com 11 years ago.
navit.xml diff. It adds possibility of switching vehicles, and adds horse profile. It also allows routing over paths and bridleways.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 13 years ago by KaZeR

  • Description modified (diff)
  • Milestone set to version 0.1.0
  • Owner changed from somebody to KaZeR
  • Status changed from new to assigned

comment:2 Changed 12 years ago by pavelmachek.livejournal.com

Plus, foot is permitted to ignore one-way restrictions.

comment:3 Changed 12 years ago by pavelmachek.livejournal.com

Well, here's a diff. It is able to find way for foot, but for some reason keeps crashing in

#5 0x080546de in command_new (this_=0x824e508, itm=<value optimized out>, delta=<value optimized out>) at navigation.c:1180

Maybe it is good as a starting point for someone...

Changed 12 years ago by pavelmachek.livejournal.com

comment:4 Changed 11 years ago by pavelmachek.livejournal.com

It seems to be supported in latest SVN version... with right navit.xml

comment:5 Changed 11 years ago by pavelmachek.livejournal.com

here's a diff I'm using. It allows routing switching in Map|Vehicle menu. Note that it probably reverts part of other patch, so it probably needs more cleanup.

Changed 11 years ago by pavelmachek.livejournal.com

navit.xml diff. It adds possibility of switching vehicles, and adds horse profile. It also allows routing over paths and bridleways.

comment:6 Changed 11 years ago by KaZeR

  • Resolution set to fixed
  • Status changed from assigned to closed

vehicleprofile can now be used for that. Please also have a look at pavel's branch 'public transport'.

Note: See TracTickets for help on using tickets.