Skip to main content

About OsmAnd routing

Overview​

Offline OsmAnd routing is based on OpenStreetMap data and provides variety of routes for different purposes. This is a list of predefined routing types which could be extended. The navigation rules are contained in routing.xml file and are used for offline routing. The route type changes automatically, when you change your profile.

You can also create your own routing.xml file and use it for navigation (only for advanced OsmAnd users).

  • Car routing (Truck, Motorcycle) - OsmAnd provides driving instructions for drivers of Cars, Trucks and Motorcycles.
  • Bicycle routing (MTB) - Bicycle routing provides navigation prompts specifically for cyclists and mtb enthusiasts. It can also be used by moped (scooter) drivers.
  • Pedestrian routing - can be used not only for walking around the city, but also during hiking trips.
  • Moped routing - is based on the bicycle routing, though it has it's own features.
  • Public Transport routing - can help you while traveling around the city.
  • Horseback routing - provides equestrians with tools they need to plan and enjoy their horseback riding activities.
  • Skiing routing - allows users to plan and navigate ski tours and other winter sports activities using the OsmAnd mobile app.
  • Train routing - provides an opportunity to use the railroad tracks for navigation.
  • Boat routing - can be used to build a route on rivers, channels, small lakes and in the open sea but only when fairways are marked in OpenStreetMap.
  • Straight line routing - provides a straight line routing (or "point-to-point" navigation) that is recalculated when your location changes.
  • Direct-to-point routing - provides a straight line routing (or "point-to-point" navigation) which stays stable for whole navigation in contrast to Straight line routing (route recalculation is disabled).

Other Routing types​

  • Online routing (Android only) - is an OsmAnd feature that allows users to plan and navigate routes using online services.
  • BRouter routing (Offline, Android only) - uses BRouter app for offline routing.

Customize offline routing​

You can modify the OsmAnd routing algorithm according to your needs. This can be done by updating the routing.xml file:

  • Copy the routing.xml file to your device. Read the Help information carefully. As an example, view the routing.xml file of the OsmAnd user.
  • After making the changes, the new routing.xml file can be added to OsmAnd by tapping it and selecting to open it in the OsmAnd app.
  • Select the modified Navigation type for your profile.

More information about this feature can be found in the Technical documentation and on OsmAnd's GitHub page.

Avoid specific roads​

caution

Avoid roads feature is global and affects all Routing types except Online routing and BRouter.

There are two possible ways to choose which roads to avoid when calculating a route:

note
  • The road must be marked at maximum zoom, as OsmAnd may misinterpret the tap and block, for example, the incorrect side of two-roadways road or sidewalk.
  • The Avoid specific roads function incorrectly works with Navigation by track option and doesn't impact simplified Markers navigation.

Avoid roads menu​

Navigation button β†’ Settings β†’ Avoid roads...

Avoid road menu Android

In this menu, you can cancel the previous selection of the road that should be avoided. To do so, tap a cross (Android) or a red "-" opposite the road you intend to use for route calculation.

Using Select on map option you can continue to mark roads as invalid for routing on the OsmAnd map.

When you select a road to avoid using Map context menu or Avoid roads menu, the list of roads will be shown above map screen.

Avoid road on the map list Android

Export / Import​

Menu β†’ Settings β†’ Actions β†’ Export

Avoid road on the map export Android 1 Avoid road on the map export Android 2

Depending on your device settings and available applications, your whole list of roads to avoid or just one of them can be exported as an .osf file to a different locations. Select the roads you want to export in the suggested list.

You can import roads to avoid during route calculation from other sources in .osf file format. Also, it can be done using Import option (Menu β†’ Settings β†’ Actions β†’ Import). You can choose to import all data or only few roads to avoid (marking a road with a tick in the list).

Avoid road on the map import Android

note

The most convenient way to synchronize roads to avoid between your devices is to use OsmAnd Cloud (Pro subscription required).

Consider temporary limitations​

Consider temporary limitations option allows taking into account temporary road restrictions when calculating routes. They may include things like road construction or road closures for some reason (an accident, road repairs, natural disasters). Enabling this option can help you avoid unexpected detours or delays. Please note that sometimes this information may be outdated. In OpenStreetMap, this information is usually marked with the tag 'temporary'.

Development section​

The Development section of the Route parameters settings (Menu β†’ Settings β†’ app profile β†’ Navigation settings β†’ Route parameters β†’ Development) is visible only when OsmAnd development plugin is enabled. It includes settings such as Routing type (Android) / Routing algorithm (iOS), GPX approximation (Android only), Autozoom, and OsmAnd Live data (Android only). Read the Navigation Settings article for a detailed description.