Create an isochrone

To generate an isochrone, send an HTTP POST request to the generate endpoint:

POST https://isochrones.googleapis.com/v1/isochrones:generate

Example: Standard driving isochrone

The following request generates a five-minute (300 seconds) smoothed driving isochrone from a location in Seattle, Washington.

curl -X POST "https://isochrones.googleapis.com/v1/isochrones:generate" \
  -H "X-Goog-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "location": {
      "latitude": 47.6062,
      "longitude": -122.3321
    },
    "travelDuration": "300s",
    "travelMode": "DRIVE",
    "routingPreference": "TRAFFIC_UNAWARE",
    "enableSmoothing": true,
    "travelDirection": "FROM"
  }'

seattle driving isochrone with smoothing

Example: Walking isochrone

This request generates a 26-minute (1800 second) walking isochrone from a location near the Colosseum in Rome.

curl -X POST "https://isochrones.googleapis.com/v1/isochrones:generate?key=YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "location": {
    "latitude": 41.8967068,
    "longitude": 12.4822025
  },
  "travelDuration": "1800s",
  "travelMode": "WALK",
  "routingPreference": "TRAFFIC_UNAWARE",
  "enableSmoothing": true,
  "travelDirection": "FROM"
}'

rome walking isochrone without smoothing

Example: Driving isochrone using a place ID

The following request generates a 26-minute (1800 second) driving isochrone starting from the Golden Gate Bridge Vista Point.

curl -X POST "https://isochrones.googleapis.com/v1/isochrones:generate" \
  -H "X-Goog-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "place": "places/ChIJZbs2BuyGhYARE9aDfk_IKf0",
    "travelDuration": "1800s",
    "travelMode": "DRIVE",
    "routingPreference": "TRAFFIC_UNAWARE",
    "enableSmoothing": true,
    "travelDirection": "FROM"
  }'

golden gate driving isochrone