TravelTime Data API
Places, public transport, population and environment data for 127 countries, from one API. Query by coordinate, H3 cell or geohash.
The Data API is in beta. It is included with a TravelTime licence at no extra cost.
GET /v1/pois/near Charing Cross · 500 m · 40 nearest
JSON
{
"name": "Caffè Nero",
"category": "cafe",
"distance_m": 41.9,
"source_count": 3,
"verified": true
}What data you get
The Data API has six datasets. You can query each one on its own, or combine them for the same area.
- Places
Cafés, schools, pharmacies, shops and more, in 16 category groups. Each place has a name, location, category, brand, sources and verification.
Points of interest →- Public transport
Stations, lines and operators, with the number of services in a typical weekday morning. Built from the same timetable data as the TravelTime API.
Public transport →- Roads
Motorway entrances and exits in the US, with the motorway and direction each one leads onto.
Roads →- Population and areas
Residents per H3 cell, census demographics where a country publishes them, and administrative boundaries.
Population and areas →- Green space
Parks, forests, gardens and other open land, as named polygons and as area per H3 cell.
Green space →- Environment
Noise, air quality, flood risk, deprivation, broadband and crime per H3 cell, from government open data.
Environment →
Use it with the TravelTime API
The TravelTime API calculates where you can get to within a travel time. The Data API tells you what is there. Both use the same H3 grid. You can send the cells from one API to the other.
- Get the H3 cells reachable within 30 minutes from /v4/h3/fast.
- Send those cell IDs to a Data API endpoint such as POST /v1/h3/pois.
- Get back the places, population or environment data for that area.
You need a key for each API. You can also query the Data API directly, by coordinate or geohash.
Use with the TravelTime API →Make your first request
- Get an API key. Enter your email and we send you a key.
- Run this request. It returns five cafés within 500 m of Trafalgar Square.
A key allows 10 requests per second and 20,000 requests per day.
bash
export POI_BASE="https://beta.poi.traveltimeapp.com"
export POI_API_KEY="poi_live_..."
curl -H "Authorization: Bearer $POI_API_KEY" \
"$POI_BASE/v1/pois/near?country=GB&lat=51.5074&lng=-0.1278&radius_m=500&category=cafe&limit=5"Where it's available
The Data API covers 127 countries. Some have every dataset and some have public transport only.
See what's available in each country →