Get started

Get started

Data API reference

The Data API answers routing, places, terrain and itinerary queries over GraphQL.

Every request sends a publishable key in X-API-Key and a session token in X-Session-Token. Authentication shows how to mint the token.

Open the explorer

Endpoint POST https://data.mountaya.com/graphql, contract v0.8.0: download the GraphQL schema.

Queries and types

  • Directions: Compute directions between waypoints for a given activity.
  • Route suggestions: Generate route suggestions matching distance constraints for a given activity.
  • Isochrones: Compute isochrones (reachability polygons) from one or more locations for a given activity.
  • Matrix: Compute a time-distance matrix between locations for a given activity.
  • Geocoding: Forward geocode a free-text query into a list of named places.
  • Points of interest: List points-of-interest matching one or more categories inside a bounding box or a buffered geometry.
  • Search: Unified full-text search across geocoded places, POIs, ways, and Mountaya entities (itineraries, collections, zones).
  • Itinerary: Read a single itinerary by identifier, with its ordered segments and waypoints.
  • Export: Prepare a download of an itinerary in a route file format.
  • Geometry analysis: Analyze surface and way type of an existing geometry.
  • Terrain: Sample elevation, slope, and aspect at standalone [longitude, latitude] points.
  • Enums: Every enum the Data API takes and answers with, and what each value means.
  • Scalars: The custom scalars the Data API carries, and the format of each.

New to the API? The Quickstart routes a hike in five minutes. GraphQL conventions covers inputs, errors and batching.

Last updated