Get started
Get started

Core concepts

Core concepts

Every Mountaya API shares the model on this page. Read it once, and each product guide reads as familiar.

Coordinates

A coordinate is a [longitude, latitude] pair in WGS 84, longitude first, as in GeoJSON. This one is Chamonix:

[6.8712, 45.9231]

Distances are in meters, durations in seconds, elevations in meters above sea level, and slopes in degrees.

Products

The Data API and the MCP server are self-serve: add a card and they switch on. The other products come with an agreement. Each publishable key opens only the products its scopes name.

Draft and published

You edit an itinerary or a zone as a draft, and the public sees its published snapshot. Editing the draft changes nothing the public sees until you publish again.

Who reads which version depends on the credential, not on a parameter. Share links, the hosted embed, and a publishable key alone read the published snapshot. A session token for one of your members reads the draft.

Resource types

ResourceWhat it is
ItineraryA multi-segment trip, with waypoints between the legs
Segment groupA named, colored run of an itinerary's segments, such as one day
ZoneAn area on the map, each a single Polygon with a severity level
CollectionItineraries and zones grouped and shown together
OverlayA map layer: weather, terrain, or points of interest

Activities

An activity is the sport a route is built for. It picks the routing profile, the default speed, and how the terrain is analyzed.

The Data API names an activity with an enum value such as HIKING_AND_TRAIL. The Map Studio API takes its activity_id, from the activity catalog at GET /v1/activities.

ActivityAPI valueWire formDirections
Hiking and trail runningHIKING_AND_TRAILhiking-and-trailYes
Professional trailPROFESSIONAL_TRAILprofessional-trailYes, off-network
RunningRUNNINGrunningYes
Road cyclingROAD_CYCLINGroad-cyclingYes
Gravel bikingGRAVEL_BIKEgravel-bikeUnavailable
Mountain bikingMOUNTAIN_BIKEmountain-bikeUnavailable
Backcountry skiingBACKCOUNTRY_SKIINGbackcountry-skiingFreehand line only
Ski touringSKI_TOURINGski-touringYes, off-network
Cross-country skiingCROSS_COUNTRY_SKIINGcross-country-skiingYes
Snowshoe walkingSNOWSHOE_WALKINGsnowshoe-walkingYes

Each routed activity uses a profile tuned to its terrain and movement style. Most activities support turn-by-turn routing, road cycling among them. Backcountry skiing is freehand-line only: no query routes it. Gravel biking and mountain biking are unavailable: the activity catalog does not list them, and every query refuses them, analyzeGeometry included. The GraphQL ActivitySlug enum uses the uppercase value; the Map Studio and Tile APIs use the kebab-case wire form, the same value lowercased with each underscore turned into a hyphen.

Units

The APIs always answer in metric. The hosted embed shows each measurement in the units you set per embed, falling back to your organization's defaults.

PreferenceParameterValues
Lengthpreferred_unit_lengthmetric, imperial
Pacepreferred_unit_paceper-time, per-distance
Slopepreferred_unit_slopedegrees, percentage
Temperaturepreferred_unit_temperaturecelsius, fahrenheit
Themepreferred_themelight, dark
Base-map tintterrain_variantlight, dark

These set the hosted embed iframe's initial display preferences. Each is optional; when omitted, the studio falls back to your organization's defaults and then to a built-in default.

preferred_unit_pace chooses the FORM a travel rate is stated in, not the system it is stated in: per-time renders a speed and per-distance renders its reciprocal, while preferred_unit_length still decides whether that is km/h and min/km or mph and min/mi.

Languages

Pass a Language value where an API accepts one. Error messages follow the Accept-Language header.

CodeLanguage
ENEnglish
FRFrench
ESSpanish
ITItalian
DEGerman
ZHChinese (Simplified)
JAJapanese

The Language enum sets the locale of localized strings the API returns. The Data API also honours the Accept-Language header for error messages.

Hosts

HostServes
api.mountaya.comThe Map Studio API, including POST /v1/sessions
data.mountaya.comThe Data API, at /graphql
tiles.mountaya.comThe Tile API
mcp.mountaya.comThe MCP server
app.mountaya.comThe Mountaya app and the hosted embed

There is no sandbox host. Test with a separate organization on the same hosts.

Next steps

Last updated