Data API
Outdoor routing and geospatial analysis as data. One read-only GraphQL endpoint for directions, suggestions, isochrones, matrices, places, and terrain.
The Data API is a single read-only GraphQL endpoint at https://data.mountaya.com/graphql. It answers routing and geospatial questions as structured data you render however you like: compute directions between waypoints, generate route suggestions that hit a target distance, draw reachability isochrones, build travel-time matrices, geocode places, list points of interest, read the terrain itself, and analyze the surface and slope of any geometry.
Every request is a POST carrying a publishable key with the data scope in X-API-Key and a session token in X-Session-Token; see authentication to mint one from your key pair. There are no mutations: the API only reads.
What you can compute
Fourteen queries, in four families.
- Routing.
directionsbetween waypoints,suggestionsshaped to a target distance and ascent,isochronesfor reachable area, and amatrixof travel times or distances between locations. - Places.
geocodefree text into named places,reverseGeocodea coordinate, listpoisin an area, and run a unifiedsearchacross places, POIs, ways, and your own itineraries, collections, and zones. - Itineraries.
itineraryto read one of your saved itineraries in full, andexportItineraryto prepare it as aGPX,KML,KMZ,GEOJSON,CSV,FIT, orTCXdownload. - Analysis and terrain.
analyzeGeometryto classify the surface, way type, and slope of an existing line, andterrainSamples,terrainProfile, andterrainGridto read elevation, slope, and aspect at points, along a line, or across an area.
All coordinates are [longitude, latitude] in WGS 84, distances are in meters, durations in seconds, elevations in meters above sea level, and gradients in degrees.
Explore the queries
Browse the schema and run queries live in the playground, or download the full GraphQL SDL to generate types and explore it in your own tooling.
Quickstart
Send a directions request with real headers and read the response shape.
Playground
Browse the schema and run live queries in an in-browser GraphQL explorer.
Routing
directions, suggestions, isochrones, and matrix for any activity.
Places
geocode, reverseGeocode, pois, and unified search.
Itineraries
itinerary to read a saved route, exportItinerary to download it as a file.
Analysis
analyzeGeometry: surface, way type, and slope of a geometry.
Terrain
terrainSamples, terrainProfile, and terrainGrid: elevation, slope, and aspect of the ground itself.