Skip to main content
This guide covers routing between two coordinates and geocoding an address. You’ll need an API key from console.footstep.ai.

Get an API key

Sign up at console.footstep.ai and create an API key. Your key will look like sk_live_abc123.... Keep it safe, as it’s used to authenticate every request.
API keys are for server-side use only. Never expose them in frontend code, mobile apps, or anywhere a user could inspect network traffic.

Your first request

Every routing request needs at least two locations: a start and an end. Each location is a lat/lon pair. Here’s a route from King’s Cross to Tower Bridge in London:
The defaults return a car route with terrain analytics. You can change this with the travel parameter.

Understand the response

The response contains a route object with everything you need:
Here’s what the key fields mean:
All field names include their unit. distance_meters is always meters, duration_seconds is always seconds, grade_percent is always a percentage. This is true regardless of the units parameter you send in the request.

Change how you travel

The default is auto (car). You can switch to walking, cycling, or other travel types using the travel parameter:
Each travel type produces different routes and terrain analytics. A pedestrian route through hilly terrain will show significantly different difficulty and grade profiles compared to the same coordinates with auto.

Try GeoJSON format

By default, responses use the footstep format, which is compact JSON with encoded polyline geometry. If you’re working with mapping libraries or GIS tools, you can request GeoJSON instead:
This returns a standard GeoJSON FeatureCollection with decoded coordinate arrays. You can paste the response directly into geojson.io to visualise it, or load it into Leaflet, Mapbox GL, deck.gl, or QGIS without any transformation.

Try geocoding

Geocoding converts text into coordinates. Search for any address, place, or landmark:
Every result includes a confidence score and place type:
Use focus.point to bias results towards a location (e.g. the user’s city) and boundary.country to restrict to specific countries. See the geocoding guide for the full set of parameters and endpoints.

Next steps

Routing API

Terrain-intelligent routing, elevation, and spatial analysis.

Geocoding API

Search, reverse geocode, autocomplete, and batch processing.

Authentication

How API keys work, key states, and security practices.

Errors

Error codes, what triggers them, and how to handle retries.