Skip to main content

Third-party routing (Brouter)

🚧 This article is incomplete

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

note

BRouter routing doesn't exist for iOS version.

Overview​

OsmAnd uses its own algorithm and resources for routing. There are many parameters for routing in our routing.xml file. You can modify the routing.xml and add or modify specific details for your type of Navigation.

But there is a third-party routing "engine" that you can use for OsmAnd. This is BRouter. BRouter uses pre-calculated routes. This means that you can very quickly build a route offline.

You can read how to install and use BRouter in the BRouter readme.txt.

How to use​

Below you can read the tutorial on how BRouter is installed and included in OsmAnd routing.

  1. Install BRouter.app in your device.
  2. Open BRouter and select a routing profile. You can choose a routing profile for your method of travelling (bicycle, moped,car, etc.). To give you more info about choosing the best routing profile for you, you can find more info about each profile here. Or you can try to use a routing profile in BRouter-online.
BRouterBRouter
  1. When you select and tap the desired routing profile (in our example it is a fast bike), OsmAnd will be able to download the data needed for routing.

Open BRouter application and click Download Manager.

BRouter

Choose your area and start downloading.

BRouterBRouter
BRouterBRouter

You have installed and downloaded all the necessary data for third-party routing. All of the following steps will be performed in the OsmAnd application.

  1. You can choose or create a navigation profile in OsmAnd application. In Navigation type, you choose BRouter (offline): Menu β†’ Configure profile β†’ Navigation profile β†’ Navigation type β†’ External β†’ BRouter (offline)
BRouterBRouter
  1. Everything is now ready to use the Brouter special routing. Now we will compare the pre-calculation speed of the BRouter routing data with the internal OsmAnd routing.

We choose two random points in the Netherlands and start calculation of the trip. We choose Balanced Driving style without using elevation data for Base profile. The time of calculation for this trip is 14.5 sec for our internal OsmAnd routing. The time for Brouter routing Navigation profile is less than 1 sec.

Note: You should be aware that Brouter routing is very fast, but cannot be changed and/or configured. For OsmAnd offline routing, you can select any parameters and restrictions offline with fresh Openstreetmap data.

Note 2: For information about Brouter routing, you can read this page on the BRouter website.

BRouterBRouter