How to use routing API

Route planning between two points. In the example, we will use the function Routing, setting the starting point (coordinates of Prague) and the destination (coordinates of Brno). We will choose the planning type (by car – fast with consideration of traffic conditions) and won’t avoid toll roads.

We will draw the obtained route on the map and display the length and driving time in the console.

For visualization, we will use the Maplibre map library.

More examples of routing: