Get started

API by capability

Every capability the four SDKs share, by the name the TypeScript SDK publishes it under.

Transport

The client: credentials, responses, errors, retries, pagination, streams and webhooks.

Base URLs

CapabilityTypeScript
transport.base-urlsBaseUrlOverrides, defaultBaseUrls

Credentials

CapabilityTypeScript
transport.credentialsCredential, MountayaTransport.applyAuth, RequestArgs

Session tokens

CapabilityTypeScript
transport.session.observableSessionTokenEngine, SessionTokenEngine.getSnapshot
transport.session.first-tokenPublishableCredential.sessionToken, SessionTokenSource

Responses

CapabilityTypeScript
transport.response.envelopeMountayaResponse, MountayaResponse.data

Errors

CapabilityTypeScript
transport.errors.ladderMountayaError, MountayaApiError, MountayaConnectionError
transport.errors.envelopeMountayaApiError.status, MountayaApiError.code, MountayaApiError.errors, MountayaApiError.metadata, MountayaApiError.retryAfter, MountayaApiError.hasCode, ErrorEntry, ErrorCode
transport.errors.request-idMountayaApiError.requestId, ResponseReport
transport.errors.idempotency-keyMountayaError.idempotencyKey
transport.errors.structuralisMountayaError, isMountayaApiError

Pagination

CapabilityTypeScript
transport.pagination.walkpaginate

Idempotency

CapabilityTypeScript
transport.idempotency.keyRequestArgs.takesIdempotencyKey
transport.idempotency.answer-unavailableMountayaIdempotentAnswerUnavailableError, IdempotentAnswer
transport.idempotency.key-in-useMountayaIdempotencyKeyInUseError, RetryOptions.maxWaitMs

Conditional writes

CapabilityTypeScript
transport.conditional.if-matchRequestArgs.ifMatch, MountayaPreconditionFailedError

Rate limits

CapabilityTypeScript
transport.ratelimit.parseRateLimitInfo, MountayaApiError.rateLimit, ResponseReport.rateLimit

Timeouts

CapabilityTypeScript
transport.timeout.budgetRequestOptions.timeoutMs, RequestArgs.serverBudgetMs

Data API

CapabilityTypeScript
transport.data.selectionSelection, MountayaSelectionError

Event streams

CapabilityTypeScript
transport.events.framingreadEventStream, SseFrame
transport.events.terminalcreateAgentTransport, createCollabTransport
transport.events.open-errorscreateAgentTransport, createCollabTransport
transport.events.method-refusalMountayaTransport.requestRaw, MountayaConfigurationError

Webhooks

CapabilityTypeScript
transport.webhooks.verify-signatureconstructWebhookEvent, MountayaWebhookSignatureError, MountayaWebhookSignatureError.reason

Geo

Everything computed without a map: units, distances, terrain, the camera's maths, profiles, tables, search and navigation.

Units

CapabilityTypeScript
geo.units.convertconvertLength, convertSpeed, convertDuration, convertTemperature, DEGREES_TO_RADIANS, RADIANS_TO_DEGREES, convertDataSize, convertProportion
geo.units.slopeconvertSlope, SlopeUnit

Formatting

CapabilityTypeScript
geo.format.lnglatformatLngLat
geo.format.locale-servicesformatNumber, dateTimeFormat
geo.format.altitude-rangeformatAltitudeRange

Languages

CapabilityTypeScript
geo.i18n.bundle-resolutionresolveBundle, Bundle
geo.i18n.localized-namelocalizedName
geo.i18n.nested-scopescopeOf, ElementsScope
geo.i18n.counted-wordsresolveElementsStrings

Distances

CapabilityTypeScript
geo.geodesy.haversinehaversineMeters

Longitudes

CapabilityTypeScript
geo.longitude.wrapwrapLongitude, wrapLongitudePastRange, longitudeDelta

Distance to a route

CapabilityTypeScript
geo.corridor.distance-to-segmentdistanceToSegmentMeters
geo.corridor.meters-to-routemetersToRoute

Camera and bounds

CapabilityTypeScript
geo.camera.zoom-boundseffectiveZoomBounds
geo.camera.max-bounds-longitudesmaxBoundsLongitudes
geo.camera.zoom-altitudealtitudeToZoom, zoomToAltitude, groundMetersPerPixel
geo.camera.pixel-paddingboundsWithPixelPadding, FitBoundsPadding
geo.camera.bounds-ofboundsOf
geo.camera.normalize-bounding-boxnormalizeBoundingBox
geo.camera.route-geometryrouteLengthMeters, cumulativeMeters, bearingDegBetween, pointAtMeters
geo.camera.itinerary-routeitineraryToRouteGeometry
geo.camera.route-contentRouteGeometry
geo.camera.swept-viewportscapturesSweptViewports, ShotCamera
geo.camera.fitcameraForBounds
geo.camera.content-boundsitineraryGeometry, boundsOf, specificationBounds
geo.camera.zoom-into-rangezoomIntoRange

Boundaries

CapabilityTypeScript
geo.boundaries.selectselectBoundary

Terrain

CapabilityTypeScript
geo.terrain.slope-aspectslopeAspectFromNeighbours, TerrainNeighbours
geo.terrain.aspect-cardinalaspectCardinal, AspectCardinal
geo.terrain.elevation-decodedecodeElevation, ElevationEncoding
geo.terrain.elevation-sampleelevationTilesAt, terrainFromElevationTiles, ElevationSource, ElevationTile, TerrainReading

Time zones

CapabilityTypeScript
geo.timezone.viewporttimezoneViewport

Itinerary data

CapabilityTypeScript
geo.data.segment-groupsapplySegmentGroups
geo.data.road-access-kindsroadAccessKindOf, RoadAccessKind
geo.data.itinerary-resourceItineraryResourceEngine, ItineraryResourceEngine.configure, ItineraryResourceEngine.getSnapshot
geo.data.itinerary-cacheinvalidateItineraryResource
geo.data.itinerary-segmentsitinerarySegments
geo.data.itinerary-waypointsitineraryWaypoints
geo.data.road-access-stretchesroadAccessFeatures

Profiles, tables and cards

CapabilityTypeScript
geo.profile.elevation-seriesbuildElevationSeries, ElevationSeries
geo.profile.totalsprofileTotals
geo.profile.slope-rampslopeRampColor, ASCENT_RAMP_STOPS, DESCENT_RAMP_STOPS, classifySteepness, SteepnessClass
geo.profile.unit-formattingformatDistance, formatElevation, formatSpeed, formatSlope, formatTemperature, formatDuration, formatHumidity, formatSnowfall, UnitFormatOptions
geo.profile.split-durationsplitDuration
geo.profile.waypoint-summarywaypointSummary, waypointHeadline, waypointDeclaresNothing
geo.profile.web-addressisWebAddress
geo.profile.climbsdetectClimbs, climbCategoryFor, ClimbCategory
geo.profile.range-totalsrangeTotals
geo.profile.resolve-waypointsresolveWaypoints, Waypoint
geo.profile.info-bandsbuildInfoBands, IndexedInfo
geo.profile.characteristicsprofileCharacteristics, trailDifficultyRank
geo.profile.committed-pacecommittedPaceOf
geo.profile.pace-clockformatPaceClock, parsePaceClock, paceMinutesToClockNumber, paceClockNumberToMinutes
geo.profile.distance-ticksdistanceTicks
geo.profile.plot-scaleprofileX, profileY
geo.profile.domainanchoredDomain, domainTicks, ProfileAnchor
geo.profile.chart-pathprofilePolyline, profileAreaPath
geo.profile.curve-stopscurveStops, CurveColor
geo.profile.stretch-atclassAt
geo.profile.slope-stretchesslopeColors, SLOPE_COLOR_STOPS
geo.profile.grade-atgradeAt
geo.profile.scrub-gridbuildSlices, distanceForSlice
geo.profile.window-clampclampRange
geo.profile.curve-placementplaceOnCurve, Waypoint
geo.profile.axis-label-cullingcullCrowdedLabels, AxisLabelBox
geo.profile.segment-rowsitinerarySegmentRows, ItinerarySegmentRowMetrics
geo.profile.waypoint-rowsitineraryWaypointRows
geo.profile.waypoint-cardwaypointCard, WaypointCardFacts
geo.profile.waypoint-property-valuewaypointPropertyValue, waypointPropertyIsLink
geo.profile.line-betweenlineBetween
geo.profile.classification-colorssurfaceColors, wayTypeColors, surfaceColors.unknown

Map style

CapabilityTypeScript
geo.style.segment-colorssegmentColorAt, assignDistinctColors, LIVELY_PALETTE
geo.style.label-languageclampMapLanguage, MAP_LANGUAGES
geo.style.label-relabelapplyLanguageToStyle
geo.style.map-paintMapPaint, defaultMapPaint
geo.style.itinerary-strokeitineraryLineSpec, itineraryDashedLineSpec, itineraryCasingSpec
geo.style.theme-tokenselementsTokens, elementTokenStyle, ElementTokens

Layers and overlays

CapabilityTypeScript
geo.layers.orderrankForTileLayer, tileSourceLayerRanks
geo.layers.paint-zoom-rangepaintZoomRange
geo.layers.data-geojsondirectionsToGeoJson, isochronesToGeoJson, matrixToGeoJson, placesToGeoJson, poisToGeoJson, suggestionsToGeoJson
geo.layers.overlay-lookupfindOverlay, OverlayKind
geo.layers.isochrone-colorisochroneColor, ISOCHRONE_RAMP
geo.layers.matrix-widthmatrixLineWidth
geo.layers.poi-stylepoiCategoryStyles, PoiCategoryStyle
geo.layers.poi-categoryomtCategoryToPoiEnum
geo.layers.selectionLayersSelectionEngine, LayersSelectionEngine.setOverlay, LayersSelectionEngine.toggleEnrichment, LayersSelectionEngine.setTerrain
geo.layers.selection-outcomeLayersSelectionEngine, LayersSelectionEngine.configure, LayersSelectionEngine.getSnapshot
geo.layers.selection-instantLayersSelectionEngine.setInstant, LayersSelectionSnapshot.instant, LayersSelectionTarget.setInstant
geo.layers.overlay-instantoverlayInstant
geo.layers.tile-timestamptimestampedSources, TimestampedSource
geo.layers.time-windowtimeSliderWindow, TimeSliderWindow
geo.layers.time-slidertimeSliderTicks, timeSliderRelease, TimeSliderTick
geo.layers.time-readouttimeSliderReadout, TimeSliderReadout

Icons

CapabilityTypeScript
geo.icons.resolutionwaypointIconImageId, amenityGlyph, activityMarkerIcon, roadAccessGlyph
geo.icons.glyph-parseparseGlyph, GlyphElement
geo.icons.glyph-paintglyphPaint
geo.icons.bundled-setslucideIconProvider, lucideUiIconProvider
geo.icons.glyph-setIconProvider, createIconProvider
geo.icons.glyph-set-chainfallbackProvider
CapabilityTypeScript
geo.search.highlighthighlightRanges, splitByRanges
geo.search.querySearchEngine.setQuery, SEARCH_LIMIT_MAX
geo.search.viewport-boundsviewportBoundsFrom
geo.search.rowsplaceRow, poiRow, wayRow, itineraryRow, zoneRow, collectionRow, SearchRow
geo.search.filterssectionsForFilter, SearchFilter
geo.search.section-orderSECTION_ORDER
geo.search.typing-pauseSEARCH_DEBOUNCE_MS, SearchEngine.setQuery
geo.search.live-roundSearchEngine, SearchEngine.setQuery, SearchEngine.configure, SearchEngine.retry
geo.search.broadenSearchEngine, SearchEngine.setViewportScope
geo.search.viewport-refreshSEARCH_VIEWPORT_REFRESH_MS, SearchViewport
geo.search.describedescribePlace, describePoi, describeWay

Navigation

CapabilityTypeScript
geo.navigation.stepsreadDirectionsSteps, readItineraryDirectionsSteps
geo.navigation.stepless-routefollowedRouteOf, NavigationRoute
geo.navigation.instruction-keysstepInstruction, NavigationInstructionKey
geo.navigation.progressnavigationProgressAt, NavigationRemainder
geo.navigation.itinerary-routereadItineraryRoute

Map

The map engine: its camera, what it answers about a point, its events and what it draws.

The map engine

CapabilityTypeScript
map.engine.patchMountayaMap.editLayer
map.engine.closedMountayaMap.destroy

Camera

CapabilityTypeScript
map.camera.poseMountayaMap.jumpTo, MountayaMap.easeTo, MountayaMap.flyTo, CameraPose
map.camera.fit-optionsFitBoundsOptions, MountayaMap.fitBounds
map.camera.zoom-windowMountayaMap.setConstraints, CameraConstraints.zoom
map.camera.control-movesMountayaMap.zoomIn, MountayaMap.zoomOut, MountayaMap.resetNorth
map.camera.locateMountayaMap.locate, GeolocationFix

Queries

CapabilityTypeScript
map.query.layersMountayaMap.featuresAt, MountayaMap.poisAt, MountayaMap.zonesAt, MountayaMap.itinerariesAt
map.query.feature-shapeQueriedFeature, MountayaMap.featuresAt
map.query.elevation-atMountayaMap.elevationAt

Events

CapabilityTypeScript
map.events.pointerMountayaMap.on, MountayaMapEvent, MountayaMapEvents.click
map.events.feature-hoverMountayaMap.on, MountayaMapEvent
map.events.access-refusedMountayaMap.on, MountayaMapEvent
map.events.access-standingMountayaMap.on, MountayaMapEvent

Specifications

CapabilityTypeScript
map.specification.styleMountayaMap.setSpecification

Style and attribution

CapabilityTypeScript
map.style.attributionMountayaMap.getCredits, TileSource.attribution
map.style.label-scopeMountayaMap.setLanguage

Base map and terrain

CapabilityTypeScript
map.basemap.terrainMountayaMap.setTerrain, MountayaMap.setTerrainVariant, MountayaMap.getTerrain

Layers

CapabilityTypeScript
map.layers.rank-insertionMountayaMap.addLayer, MountayaMap.removeLayer, LayerRank
map.layers.keysMountayaMap.drawnLayerKeys, MountayaMap.layerIdsForKey, MountayaMap.isKeyVisible
map.layers.visibilityMountayaMap.setLayerVisibility, MountayaMap.isLayerVisible
map.layers.manifestMountayaMap.loadLayers, MountayaMap.getLayers, MountayaMap.setLayersOrganization

Overlays

CapabilityTypeScript
map.overlays.compositionMountayaMap.setOverlay, MountayaMap.clearOverlay, MountayaMap.addEnrichment, MountayaMap.removeEnrichment, MountayaMap.getEnrichments
map.overlays.instantMountayaMap.setInstant, MountayaMap.getInstant

Itineraries

CapabilityTypeScript
map.slots.latest-requestMountayaMap.setItinerary, MountayaMap.setItineraries, MountayaMap.setCollection, MountayaMap.setZones, MountayaMap.clearItinerary, MountayaMap.clearCollection

Directions, isochrones and matrices

CapabilityTypeScript
map.analysis.slotsMountayaMap.addDirections, MountayaMap.addIsochrones, MountayaMap.addMatrix, MountayaMap.addPlaces, MountayaMap.addSuggestions, MountayaMap.setPointsOfInterest, MountayaMap.removeDirections, MountayaMap.removeIsochrones, MountayaMap.removeMatrix, MountayaMap.removePlaces, MountayaMap.removeSuggestions
map.analysis.editMountayaMap.editDirections, MountayaMap.editIsochrones, MountayaMap.editMatrix, MountayaMap.editPlaces, MountayaMap.editSuggestions, MountayaMap.editPointsOfInterest

Geometry

CapabilityTypeScript
map.geometry.slotsMountayaMap.setPreview, MountayaMap.setHighlight, MountayaMap.setEmphasis, MountayaMap.editPreview, MountayaMap.editHighlight, MountayaMap.clearPreview, MountayaMap.clearHighlight, MountayaMap.clearEmphasis, MountayaMap.getGeometry, GeometrySlot

Markers

CapabilityTypeScript
map.marker.lifecycleMountayaMap.addMarker, MountayaMap.editMarker, MountayaMap.removeMarker, MarkerOptions
CapabilityTypeScript
map.search.result-highlightMountayaMap.setSearchHighlight, SearchHighlight

Profile cursor

CapabilityTypeScript
map.profile.cursor-markershowCursorMarker, hideCursorMarker
map.profile.emphasiswriteLegEmphasis

Organization content

CapabilityTypeScript
map.organization.readMountayaMap.loadOrganization, MountayaMap.getOrganization

Last updated