TravelTime Data API
Copy link

The TravelTime Data API gives you data about any location. You can find out what is there, who lives there, what the area is like and how quickly you can reach everyday places.

Most requests start with a coordinate: send a latitude and longitude as near, with a radius, or as at for the H3 cell around that point. All the data also uses the same grid of H3 cells, so you can send the cells the TravelTime H3 API returns for a travel time, and one cell id works with every endpoint that takes cells or at.

The Data API is included with a TravelTime licence.

Query by location or by H3
Copy link

You can ask for the same data by latitude and longitude or by H3 cell. Both examples below are real responses. The endpoints are listed further down, and each one's page says which it takes.

By latitude and longitude
Copy link

For apps that start from an address or a point. The example finds the cafés within 300 m of King's Cross, nearest first.

Request

curl -H "X-Application-Id: YOUR_APP_ID" -H "X-Api-Key: YOUR_APP_KEY" \
  "https://data.traveltimeapp.com/v1/places?near=51.5307,-0.1238&radius_m=300&category=cafe"
200 · 42 places

42 pins inside the 300 m circle; a pin opens its row.

By H3 cell
Copy link

For teams that already work in H3, or that use the H3 cells the TravelTime H3 API returns. The example counts the places in each of seven cells between Euston and St Pancras.

Request

curl -H "X-Application-Id: YOUR_APP_ID" -H "X-Api-Key: YOUR_APP_KEY" \
  "https://data.traveltimeapp.com/v1/places/cells?cells=89195da4d03ffff,89195da4d07ffff,89195da4d0bffff,89195da4d0fffff,89195da4d13ffff,89195da4d17ffff,89195da4d1bffff"
200 · 7 H3 cells

Shade = count281207 H3 cells; click a cell to open its row.

Endpoints
Copy link

The endpoints are grouped by the data they return. Selecting an endpoint opens it in the playground and runs the request. The catalog and category endpoints open their reference docs instead.

Each group has its own page with examples, parameters, response fields and errors. See Requests and errors for how to specify a location, paging and the error codes.

Coverage lists the countries where each group is available, and its sources. We are adding 33 more countries.

Places
Copy link

Points of interest from Foursquare, OpenStreetMap and Overture

Stations, stops and the lines that serve them

Roads
Copy link

Major roads and where you get on and off them

Boundaries
Copy link

Administrative areas, from the smallest local area up to the country

Demographics
Copy link

Population and census data for each H3 cell

Neighbourhood
Copy link

Noise, air quality, flood risk, crime, deprivation and broadband for each H3 cell

Open spaces
Copy link

Parks and other open spaces, and green cover for each H3 cell

Proximity
Copy link

Walk, transit and drive ratings, and travel times of up to 15 minutes to everyday places

Custom scores
Copy link

Base URL and authentication
Copy link

Sign up for a TravelTime account, then send your application id and API key as two headers with every request. When you are logged in, the examples in these docs include your credentials.

Request

GET https://data.traveltimeapp.com/v1/places?near=51.5307,-0.1238&radius_m=300
X-Application-Id: YOUR_APP_ID
X-Api-Key: YOUR_APP_KEY

Rate limits. The limits apply to each application. See the limits table for their values and the 429 response you get when you go over them.

Get help. Contact us at traveltime.com/contact-us.

Next steps
Copy link