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.
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.
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"42 pins inside the 300 m circle; a pin opens its row.
| Namename | Distancedistance_m | Categorycategory | Brandbrand | Map |
|---|---|---|---|---|
| Black Sheep Coffee | 33 m | cafe | Black Sheep Coffee | |
| Hermanos Colombian Coffee Roasters | 77 m | cafe | Hermanos Colombian Coffee Roasters | |
| La Regina | 78 m | restaurant | — | |
| Starbucks | 80 m | cafe | Starbucks | |
| Spagnoletti | 81 m | restaurant | — |
5 of 42 shown · the other 37 are in the response
Response
{
"results": [
{
"id": "pl_gb_b9eda4a4-485e-4c63-8b0f-45e782c39d25",
"name": "Black Sheep Coffee",
"category": "cafe",
"brand": "Black Sheep Coffee",
"lat": 51.53042,
"lng": -0.12366,
"cell": "89195da4d8fffff",
"verified": true,
"distance_m": 33
},
"… 41 more rows"
],
"next_cursor": null
}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"Shade = count281207 H3 cells; click a cell to open its row.
| H3 cellcell | Placescount | Map |
|---|---|---|
| 89195da4d03ffff | 120 | |
| 89195da4d07ffff | 119 | |
| 89195da4d0bffff | 38 | |
| 89195da4d0fffff | 58 | |
| 89195da4d13ffff | 32 | |
| 89195da4d17ffff | 100 | |
| 89195da4d1bffff | 28 |
Response
{
"resolution": 9,
"results": [
{
"cell": "89195da4d03ffff",
"count": 120
},
"… 6 more rows"
],
"next_cursor": null
}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.
Points of interest from Foursquare, OpenStreetMap and Overture
Stations, stops and the lines that serve them
Major roads and where you get on and off them
Administrative areas, from the smallest local area up to the country
Population and census data for each H3 cell
Noise, air quality, flood risk, crime, deprivation and broadband for each H3 cell
Parks and other open spaces, and green cover for each H3 cell
Walk, transit and drive ratings, and travel times of up to 15 minutes to everyday places
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_KEYRate 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.