Skip to main content

Routing Configuration - .routing.xml

🚧 This article is incomplete

This article is incomplete & needs to be reviewed. You can help by creating a pull request.

Routing.xml is a configuration file that stores multiple routing profiles. Each profile is independent and has only base OsmAnd profile as a reference that's why it's not possible to create a hierarchy of profiles and you will need to copy all rule sections. Each is fully configurable via routing.xml, it means there is no any constants in the code and all penalties are calculated using this configuration.

In the application you can use multiple custom routing.xml files and profiles you can select them in Settings -> Profile -> Navigation Settings -> Routing Settings.

Please check the documentation inside routing.xml:

Penalties of Elevation data​

Depending on the selected mode (Less hilly, Flat, Hilly) and the physical slope (%) of the road, a penalty calculated from the height difference is added to each horizontal metre.

Table of penalties bicycle routing:

OptionIncline:<1%<3%<7%<13%<25%>=25%Decline:<17%<35%<60%>=60%
Disabled/Any (the shortest but hardest)----------
Less hilly (default, balanced)281632486.42525impossible
Flat (the longest but easy)2123050746.42525impossible
Hilly (more difficult)6119.77.530.50.36.42525impossible

Depending on the selected mode (Less hilly, Flat, Hilly) and the physical slope (%) of the road, a penalty calculated from the height difference is added to each horizontal metre.

Table of penalties pedestrian routing:

OptionIncline:<1%<3%<7%<13%<25%>=25%Decline:<9%<17%<35%<60%>=60%
Disabled/Any (the shortest but hardest)-----------
Less hilly (default, balanced)1481015510172540
Flat (the longest but easy)212305074510172540
Hilly (more difficult)6120730.50.3510172540