Get started
Routing

Isochrones

Isochrones

The isochrones query of the Data API. Every request is a POST to https://data.mountaya.com/graphql with a publishable key and a session token: see Authentication.

isochrones

POST
/graphql

Compute isochrones (reachability polygons) from one or more locations for a given activity. Returns polygons representing areas reachable within the specified range.

Arguments

input

IsochronesInput!

required

The origin, the activity, and the time or distance ranges to compute reachability for.

Returns

isochrones

IsochronesResult!

required

Result of an isochrones computation.

Errors A field the API refuses is answered 200, its entry in errors beside the data that resolved. See Errors.

curl https://data.mountaya.com/graphql \
  -H "X-API-Key: pk_your_publishable_key" \
  -H "X-Session-Token: sess_your_session_token" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "query Isochrones($input: IsochronesInput!) { isochrones(input: $input) { isochrones { geometry value } } }",
    "variables": {
      "input": {
        "activity": "HIKING_AND_TRAIL",
        "locations": [[6.8712, 45.9231]],
        "range": [1800, 3600],
        "rangeType": "TIME"
      }
    }
  }'