Routing API with turn-by-turn instructions

Build a route between a pair or more locations for cars, trucks, bicycles, pedestrians, and transit

Try more options with our Playground or get an API key and start using it now! We have a Freemium pricing model. Start now for Free and extend when you need it!

Features and options

Build routes according to your needs and preferences

Set route barriers

Skip gates, roads, and countries

The Routing API lets to set barriers, that do not allow building a route through them. This could be exact locations (for example, tunnels and bridges), roads, and whole countries.

Avoid tolls, ferries, highways

Avoid unwanted ways

Similar to barriers you can avoid unwanted route parts - ferries, toll roads, highways. The Routing algorithms will offer alternative routes when it's possible.

Road restrictions

Choose suitable roads

You can specify vehicle parameters to choose suitable roads. For example, provide the required height to avoid too low tunnels or passes.

Directions and stap-by-step instructions

Directions and instructions

The navigation instructions are provided within every route result. For example, “Drive west on Freisinger Straße/DAH 9” or “Enter the roundabout and take the 2nd exit”. The API supports instructions in English, German, Italian, Spanish, French, and other languages.

Drive, truck, transit, bicycle, and walk modes

Transportation modes

We support different transportation modes, including "drive", "truck", "transit" (multi-modal public transportation), "walk", and "bicycle".

Transit routing uses the official bus, tram, and train schedules if available, and falls back to approximated results where necessary.

Works on every platform and with any programming language

Cross-platform and flexible

The Routing API is accessible via HTTP GET requests and easy to integrate with any programming language.

Moreover, it returns a GeoJSON object as a result. The format is widely supported by most map visualization libraries (MapLibre GL, Leaflet, OpenLayers).

Contact us if you need more flexibility for the Routing API. More options are available on request.

Getting started

Works via HTTP and have a GeoJSON format

Step 1. Register and get an API Key

You will require an API Key to use the API. Register on MyProject Geoapify and get an API key.

Step 2. Generate and call HTTP Get request

Generate an HTTP Get request with input data and make the call. Use our Playground and Documentation learn about Routing API request/response structure.

Here is an example of generating an API request:

.then(resp => resp.json())
.then((calculatedRouteGeoJSON) => {


How do you bill Routing API Requests?

A route between every pair of waypoints is counted as a separate routing request. Learn more about the API pricing on the API Documentation page.

How is a 'Truck' mode is different from a 'Drive' mode?

The 'Truck' mode takes into account road restrictions for trucks, avoids thin roads and residential areas, prefers routes with fewer maneuvers.

I need to build routes for heavy transport. Can your API do that?

The Geoapify Routing API have a very flexible and powerful engine under the hood. Contact us and we will create a model that solves your business case.

How good is coverage for public transport?

We use official GTFS feeds when they are available and approximated model for other places. This let us to provide worldwide coverage for public transport. Contact us!

Can we use custom GTFS feeds with your Routing API?

Sure! We can setup a dedicated server for you that builds routes with your GTFS feeds.

Can you provide custom conditions for high volumes?

Yes! Contact us and we will find conditions beneficial for both sides!

More Routing APIs

We have more APIs that can be used in combination with Routing API or separately

Time-distance matrix

Route Matrix API

Geoapify Route Matrix API lets to calculate a time-distance matrix for a large number of locations.

Map Matching API

Map Matching API

Geoapify Map Matching API lets to span GPS-coordinates to existing roads and get detailed information about the roads.

Solve VRP with Route Planner API

Route Planner API

Geoapify Route Planner API solves route optimization and route planning problems (VRP and its variants) to find optimal delivery routes, generate schedules, and plan usage of shared resources.

Need to calculate routes?

Get an API key and start using Geoapify Routing API!