abrensch / brouter

configurable OSM offline router with elevation awareness, Java + Android
MIT License
490 stars 118 forks source link

Add transportMode as numeric variable for profiles #544

Open afischerdev opened 1 year ago

afischerdev commented 1 year ago

We have a set of variables for the transport mode in a profile:

validForCars
validForBikes
validForFoot

This blocks the transport mode to a least three entries. So you have to reuse e.g. validForCarsfor a profile moped.brf.

How about wrapping this in a variable with some predefined values:

assign transportMode = 0  # 0=foot, 1=bike, 2=car

In a next step, this would give us the opportunity to define further modes of transport such as:

assign transportMode = 0  # 0=foot, 1=bike, 2=car, 3=motorbike, 4=boat, 5=canoe, 6=ski