# API by capability

> Canonical URL: https://docs.mountaya.com/en/sdks/dart/reference/api/
> Last updated: 2026-11-26
> Rules for agents: https://docs.mountaya.com/llms.txt#rules-for-agents

Every public capability of the Dart and Flutter SDK, by the names it publishes it under, beside the TypeScript SDK's.

Every capability the four SDKs share, by the name the Dart and Flutter SDK publishes it under, beside the TypeScript name.

Generated from version 20 of the SDK capability registry (`sdk/registry.yaml` in the contract repository). A cell lists the public declarations the Dart and Flutter SDK publishes for a capability, spelled as its API record spells them. "Not in this SDK" means the SDK scopes the capability out. The rule under each group is the sentence every SDK's conformance test holds the capability to.

## Transport

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

### Base URLs

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `transport.base-urls` | `BaseUrls` | `BaseUrlOverrides`, `defaultBaseUrls` |

- `transport.base-urls`: Each public surface has its own default origin, and a client overrides them independently.

### Credentials

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `transport.credentials` | `Credential`, `Credential.headers`, `CredentialDeclaration` | `Credential`, `MountayaTransport.applyAuth`, `RequestArgs` |

- `transport.credentials`: Each credential projects onto a fixed set of headers and the client's language onto `Accept-Language`, on a request and on an event stream's open alike; a session token accompanies a publishable key and a share token replaces it, the user an operation acts as rides the session token and no header, and what an operation declares decides what it refuses locally: a secret key where a secret key does not authenticate it and every other credential where one does, a share token where it declares none, a credential without a session token where every requirement names one, and a session source reporting a token minted without `user_id` where it declares `x-acting-user: required`, while an operation that takes no credential is sent none and refuses none, and every malformed credential is refused before a request leaves the process.

### Session tokens

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `transport.session.observable` | `SessionTokenEngine`, `SessionTokenEngine.snapshot` | `SessionTokenEngine`, `SessionTokenEngine.getSnapshot` |
| `transport.session.first-token` | `SessionToken`, `SessionTokenSource` | `PublishableCredential.sessionToken`, `SessionTokenSource` |

- `transport.session.observable`: The session engine is read as subscribe plus a snapshot, so a subscriber is told of every change, a read returns the same value until one, and nothing is reported after its unsubscribe.
- `transport.session.first-token`: A session token read per request is read for every request, and a request made while its source holds no token and reports one on its way waits for it, bounded by its timeout, then goes out with the token, or under the key alone once none is on its way, where an operation that requires a session is refused with the mint's error as its cause.

### Responses

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `transport.response.envelope` | `Response`, `Response.data`, `Response.etag` | `MountayaResponse`, `MountayaResponse.data` |

- `transport.response.envelope`: A REST method returns its success envelope whole, payload at `data`, a resource's `etag` as sent and a typed null where the answer has no payload, and a Data API method returns the value of the operation's own field, refusing an answer without it.

### Errors

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `transport.errors.ladder` | `MountayaException`, `ApiException`, `ConnectionException` | `MountayaError`, `MountayaApiError`, `MountayaConnectionError` |
| `transport.errors.envelope` | `ApiException.status`, `ApiException.code`, `ApiException.errors`, `ApiException.metadata`, `ApiException.retryAfter`, `ApiException.hasCode`, `ErrorEntry`, `ApiErrorCode` | `MountayaApiError.status`, `MountayaApiError.code`, `MountayaApiError.errors`, `MountayaApiError.metadata`, `MountayaApiError.retryAfter`, `MountayaApiError.hasCode`, `ErrorEntry`, `ErrorCode` |
| `transport.errors.request-id` | `ApiException.requestId`, `ResponseReport` | `MountayaApiError.requestId`, `ResponseReport` |
| `transport.errors.idempotency-key` | `MountayaException.idempotencyKey` | `MountayaError.idempotencyKey` |
| `transport.errors.structural` | `isMountayaException`, `isApiException` | `isMountayaError`, `isMountayaApiError` |

- `transport.errors.ladder`: Every 4xx maps to a declared error of its own and the whole 5xx range maps to one, a 412 is a `PreconditionFailedError`, 402, 409 and 429 are each one class whatever code their entry carries, a ceiling's 429 coded `LIMIT_REACHED` a `RateLimitError` as any other, the two subclasses of `ConflictError` that answer a request's `Idempotency-Key` aside, an `IdempotencyKeyInUseError` for a key still in use and the one `transport.idempotency.answer-unavailable` proves, and a Data API answer that carries errors under a success status is a `DataError`.
- `transport.errors.envelope`: An error carries the answer's status, its entries, its first entry's code, its `extensions.metadata` exactly as sent, its `X-Request-Id` and the rate-limit state its headers describe and the whole seconds its `Retry-After` named, whatever its status, a 402 being one class whatever code that first entry carries, the code being reported beside the class rather than choosing it, and every code typed by one open vocabulary that keeps a code no surface declares, which `hasCode` asks of every entry.
- `transport.errors.request-id`: The `X-Request-Id` an answer sends is carried exactly as sent by the error raised from it on every surface, a stream's failed open included, and reported to the `onResponse` hook once for every attempt an answer came back to, while a request that never arrived carries and reports none.
- `transport.errors.idempotency-key`: Every error a call that sent an `Idempotency-Key` raises carries that key, the caller's as given or the one the client drew, whatever the error, and an error from a call that sent none carries none, so that its caller sends the same call again with the key rather than a new one.
- `transport.errors.structural`: An error is recognised by the name its type declares as data and never by constructor identity, through one published predicate for every error of the family and one for an error the API answered.

### Pagination

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `transport.pagination.walk` | `PageWalk` | `paginate` |

- `transport.pagination.walk`: A paged listing is walked by sending `limit` and the cursor reached under `query`, the caller's own cursor first and then each page's `next_cursor`, an empty page's included, until a page names no cursor or a ceiling on requests the caller states has been reached (none by default), refusing with an `ApiError` a cursor it has already sent, with a page size outside 1 to 100 or a ceiling under one request refused before any request, and a caller's cancellation settling the walk with the caller's own reason.

### Idempotency

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `transport.idempotency.key` | `OperationDeclaration.declaresIdempotencyKey` | `RequestArgs.takesIdempotencyKey` |
| `transport.idempotency.answer-unavailable` | `IdempotentAnswerUnavailableException`, `IdempotentAnswer` | `MountayaIdempotentAnswerUnavailableError`, `IdempotentAnswer` |
| `transport.idempotency.key-in-use` | `IdempotencyKeyInUseException`, `RetryPolicy.waitBudget` | `MountayaIdempotencyKeyInUseError`, `RetryOptions.maxWaitMs` |

- `transport.idempotency.key`: An operation that declares `Idempotency-Key` sends one key on every attempt of a call, the caller's as given or a version 4 UUID drawn once per call from a cryptographic random source and none where the runtime has no such source, while an operation that declares none sends none, the caller's own included, and a key no header can carry is refused before any request that would send it.
- `transport.idempotency.answer-unavailable`: A 409 whose first entry is coded `IDEMPOTENCY_ANSWER_UNAVAILABLE`, the answer to a repeated key whose write was made and whose first answer cannot be given again, is never repeated and raises an `IdempotentAnswerUnavailableError`, a `ConflictError` carrying the status, `Location` and `ETag` of that answer as `extensions.metadata` states them, each absent where it states none, while a 409 coded `IDEMPOTENCY_KEY_IN_USE` is repeated and raises the other subclass, an `IdempotencyKeyInUseError`, once the call stops asking.
- `transport.idempotency.key-in-use`: A 409 coded `IDEMPOTENCY_KEY_IN_USE` is repeated with the same key after the seconds its `Retry-After` names and never less than one second, counted against no ceiling of attempts, for as long as the call's wait budget lasts, after which the call raises an `IdempotencyKeyInUseError`, a `ConflictError` carrying the key.

### Conditional writes

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `transport.conditional.if-match` | `OperationDeclaration.isConditional`, `PreconditionFailedException` | `RequestArgs.ifMatch`, `MountayaPreconditionFailedError` |

- `transport.conditional.if-match`: A caller's tag is sent as `If-Match` exactly as given on every attempt of a write that declares the header, a client never writes one the caller did not pass, a tag no header can carry is refused before any request, and a 412 settles at once as a `PreconditionFailedError`.

### Rate limits

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `transport.ratelimit.parse` | `RateLimitState`, `ApiException.rateLimit`, `ResponseReport.rateLimit` | `RateLimitInfo`, `MountayaApiError.rateLimit`, `ResponseReport.rateLimit` |

- `transport.ratelimit.parse`: The `RateLimit-Policy` and `RateLimit` fields of an answer are read as Structured Field Lists into one policy per listed String member, in the order the policy field lists them, with its quota, window, remaining figure and reset, a figure not stated null and a member or a field that does not parse left out, and the state is reported on every error the API answered and to the `onResponse` hook, never counted against.

### Timeouts

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `transport.timeout.budget` | `RequestOptions.timeout`, `OperationDeclaration.timeout` | `RequestOptions.timeoutMs`, `RequestArgs.serverBudgetMs` |

- `transport.timeout.budget`: An attempt's budget is the call's own where it names one, and otherwise the larger of the client's, 30 seconds by default, and the operation's own budget, its declared `x-timeout-ms` or the 30 seconds the Data API states for every operation, plus a margin of 5 seconds, so the API's own refusal arrives before the client gives up on it, and a budget of zero or less is refused before any request.

### Data API

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `transport.data.selection` | `FieldSelection`, `SelectionException` | `Selection`, `MountayaSelectionError` |

- `transport.data.selection`: A caller's field selection is built from the generated field tree rather than from the result type, so a field outside the tree fails at the call site instead of at the server.

### Event streams

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `transport.events.framing` | `EventStream`, `EventRecord` | `readEventStream`, `SseFrame` |
| `transport.events.terminal` | `EventStream` | `createAgentTransport`, `createCollabTransport` |
| `transport.events.open-errors` | `Mountaya.events` | `createAgentTransport`, `createCollabTransport` |
| `transport.events.method-refusal` | `Mountaya.send`, `ConfigurationException` | `MountayaTransport.requestRaw`, `MountayaConfigurationError` |

- `transport.events.framing`: An event stream is framed by the Server-Sent Events rules, a line ending at CRLF, LF or a lone CR and a record at an empty line, with one leading byte-order mark dropped and the bytes decoded as UTF-8 across reads, an `id:` moves the resume position even in a record that carries no data, and a record that names no `id:` or no `event:` reports none.
- `transport.events.terminal`: An agent run's stream ends on `done` and only on `done`, which carries how the run ended, so an `error` or a `budget-exhausted` is surfaced and read past, and a stream that closes without a `done` is opened again from the last event id, one that delivered nothing included as an open without progress, while a collaboration feed has no end of its own and is opened again after every close.
- `transport.events.open-errors`: A failed stream open raises the error the same answer raises on a request, and a 4xx other than 429 ends the stream where a 429, a 503, a 504 and a dropped connection reopen it, every other 5xx ending an agent run's stream and reopening a collaboration feed.
- `transport.events.method-refusal`: A request whose `Accept` names `text/event-stream` is refused as a buffered call before its first attempt, with a configuration error naming the stream API.

### Webhooks

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `transport.webhooks.verify-signature` | `constructWebhookEvent`, `WebhookSignatureException`, `WebhookSignatureException.reason` | `constructWebhookEvent`, `MountayaWebhookSignatureError`, `MountayaWebhookSignatureError.reason` |

- `transport.webhooks.verify-signature`: A webhook delivery is read as its event only once a `v1` of its `Mountaya-Signature` equals, compared in constant time, the HMAC-SHA256 of `<t>.<body>` keyed by the endpoint's whole secret, and then only where `t` is within the receiver's tolerance either way of its clock, the machine's wall clock unless the caller states one as `now`, 300 seconds unless the receiver states another, a missing header, a malformed one, a signature no `v1` matches and a timestamp outside the tolerance each refused by its own reason, in that order.

## Geo

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

### Units

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.units.convert` | `convertLength`, `convertSpeed`, `convertDuration`, `convertTemperature`, `convertAngle`, `convertDataSize`, `convertProportion` | `convertLength`, `convertSpeed`, `convertDuration`, `convertTemperature`, `DEGREES_TO_RADIANS`, `RADIANS_TO_DEGREES`, `convertDataSize`, `convertProportion` |
| `geo.units.slope` | `convertSlope`, `SlopeUnit` | `convertSlope`, `SlopeUnit` |

- `geo.units.convert`: A value converts between two units of one quantity through the exact factors that define them, so a mile is 5,280 feet in every SDK rather than whichever rounding each one picked.
- `geo.units.slope`: A slope converts between degrees, a percentage grade and a rise-over-run ratio through the tangent, so forty-five degrees is a hundred percent.

### Formatting

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.format.lnglat` | `formatLngLat` | `formatLngLat` |
| `geo.format.locale-services` | `formatNumber`, `formatDateTime`, `DateLength`, `TimeLength` | `formatNumber`, `dateTimeFormat` |
| `geo.format.altitude-range` | `formatAltitudeRange` | `formatAltitudeRange` |

- `geo.format.lnglat`: A position is read to a human latitude-first with hemispheres, the opposite of the wire order, with a longitude read as an angle, so one counted past the antimeridian is stated as the meridian it names, and a hemisphere chosen after rounding, so a value that prints as zero takes the positive one.
- `geo.format.locale-services`: Numbers, dates and times of day are rendered by the ecosystem's locale services rather than assembled, because assembled digits are Latin digits by construction in a product that translates every word around them.
- `geo.format.altitude-range`: An altitude band is written by the locale services' own range formatting in the reader's elevation unit, whole, two bounds that round to one figure reading as that figure approximately and either bound missing giving nothing.

### Languages

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.i18n.bundle-resolution` | `resolveBundle`, `wordOverridesOf`, `WordBundle` | `resolveBundle`, `Bundle` |
| `geo.i18n.localized-name` | `localizedName` | `localizedName` |
| `geo.i18n.nested-scope` | `scopeOf`, `ElementsScope` | `scopeOf`, `ElementsScope` |
| `geo.i18n.counted-words` | `countedText`, `filledText` | `resolveElementsStrings` |

- `geo.i18n.bundle-resolution`: A bundle of words resolves for a language by folding, innermost first, the base translation (one the host handed over ahead of one the bundle carries, English where neither stands), the bundle's partial layer for it, and the consumer's override, keyed by section or by language and refused when it names both.
- `geo.i18n.localized-name`: A catalogue entry's display name is its name in the language read by its primary subtag, else its English name, else its slug, an empty name falling through as a missing one.
- `geo.i18n.nested-scope`: A nested elements scope takes every setting it does not state from the scope around it, a scope stating a language other than the one around it, or words, resolving its words afresh from that language's base with its number locale following such a language, and a glyph set stated for the controls never standing in for the marker set.
- `geo.i18n.counted-words`: A word that counts takes the form its language names for the count, the one form for one and the other form otherwise in English and the one form for zero and one in French, a count below zero taking the other form in both, and a template takes in its first placeholder the value the element hands it, written by the locale services.

### Distances

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.geodesy.haversine` | `haversineMeters` | `haversineMeters` |

- `geo.geodesy.haversine`: Distance between two positions is the great-circle distance on a sphere of one declared radius, and every other distance in the layer is this function or a sum of it.

### Longitudes

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.longitude.wrap` | `wrapLongitude`, `wrapLongitudePastRange`, `longitudeDelta` | `wrapLongitude`, `wrapLongitudePastRange`, `longitudeDelta` |

- `geo.longitude.wrap`: A longitude is an angle: it is brought into [-180, 180) by whole turns, kept as written where it is already within [-180, 180], and the way from one to another is the signed short way round, at most half a turn.

### Distance to a route

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.corridor.distance-to-segment` | `distanceToSegment` | `distanceToSegmentMeters` |
| `geo.corridor.meters-to-route` | `metersToRoute` | `metersToRoute` |

- `geo.corridor.distance-to-segment`: The distance from a point to a line segment is planar over the span a corridor test covers, and a degenerate segment answers the distance to its single vertex.
- `geo.corridor.meters-to-route`: The distance from a point to an itinerary is the shortest distance to any of its segments in a local plane on the mean sphere, each segment kept in one piece the short way round the antimeridian and bridged across a vertex that names no place.

### Camera and bounds

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.camera.zoom-bounds` | `effectiveZoomBounds` | `effectiveZoomBounds` |
| `geo.camera.max-bounds-longitudes` | `maxBoundsLongitudes` | `maxBoundsLongitudes` |
| `geo.camera.zoom-altitude` | `altitudeToZoom`, `zoomToAltitude`, `groundMetersPerPixel` | `altitudeToZoom`, `zoomToAltitude`, `groundMetersPerPixel` |
| `geo.camera.pixel-padding` | `boundsWithPixelPadding`, `PixelPadding` | `boundsWithPixelPadding`, `FitBoundsPadding` |
| `geo.camera.bounds-of` | `boundsOf` | `boundsOf` |
| `geo.camera.normalize-bounding-box` | `normalizeBoundingBox` | `normalizeBoundingBox` |
| `geo.camera.route-geometry` | `routeLengthMeters`, `cumulativeMeters`, `bearingDegrees`, `positionAtMeters` | `routeLengthMeters`, `cumulativeMeters`, `bearingDegBetween`, `pointAtMeters` |
| `geo.camera.itinerary-route` | `itineraryRoute` | `itineraryToRouteGeometry` |
| `geo.camera.route-content` | `RouteGeometry` | `RouteGeometry` |
| `geo.camera.swept-viewports` | `capturesSweptViewports`, `CameraPose` | `capturesSweptViewports`, `ShotCamera` |
| `geo.camera.fit` | `cameraForBounds` | `cameraForBounds` |
| `geo.camera.content-bounds` | `itineraryBounds`, `specificationBounds` | `itineraryGeometry`, `boundsOf`, `specificationBounds` |
| `geo.camera.zoom-into-range` | `zoomIntoRange` | `zoomIntoRange` |

- `geo.camera.zoom-bounds`: A map's zoom range is the layer's own range with an absolute floor and a buffered ceiling, never closer together than one minimum span.
- `geo.camera.max-bounds-longitudes`: A pan lock narrower than a turn keeps its width with its west edge brought within one world, and a lock a turn or more wide is written as the whole world a hair under a turn around its centre, because a renderer that wraps a lock's edges into one world measures one exactly a turn wide as no width.
- `geo.camera.zoom-altitude`: Camera altitude and Web Mercator zoom convert through ground resolution at the latitude, so the same altitude is a different zoom at the equator and at sixty degrees.
- `geo.camera.pixel-padding`: A box grows by a screen padding in pixels through the ground resolution of 512-pixel tiles at the zoom, a pixel of longitude spanning the same degrees at every latitude and a pixel of latitude that span times the cosine of the centre latitude.
- `geo.camera.bounds-of`: The box around a set of positions is the narrower of its two readings, as written and across the antimeridian, so a set straddling the antimeridian is framed across it with its east edge past 180.
- `geo.camera.normalize-bounding-box`: A box is canonical with each axis ordered, its west edge within one world and its east edge following it past 180 across the antimeridian, a box a turn wide written as the whole world, and its latitudes within the Web Mercator limit.
- `geo.camera.route-geometry`: A route's cumulative length, the bearing between two positions, and the position at a distance along it are the three measurements every fly-through is planned on, and a leg that crosses the antimeridian is interpolated the short way round, its longitude continuing from the leg's first vertex.
- `geo.camera.itinerary-route`: A fly-through's route lays every line an itinerary's segments hold end to end in chain order, leaving out a vertex that names no place and a directions segment's vias, naming the vertex each later line starts on as a jump and stating elevations only where every vertex carries one.
- `geo.camera.route-content`: Two routes are the same route where every vertex, every elevation and every jump they hold is the same number in the same order, compared by content and never by identity, with no list and an empty one alike.
- `geo.camera.swept-viewports`: A recording captures the viewports its sweep jumped through only where both hold the same frames with the same centre, zoom, pitch and bearing, compared exactly.
- `geo.camera.fit`: The camera that fits a box faces north at the highest zoom at which the box's Web Mercator projection on 512-pixel tiles fits the canvas less its padding, within the zoom window and the fit's ceiling, centred on the box's projected middle moved by half the difference of opposite paddings.
- `geo.camera.content-bounds`: A drawn itinerary is framed on the box its segments' stored geometries span, a directions segment's vias included and its waypoints left out, and a collection on the box its specification states, a box whose west edge lies east of its east edge read across the antimeridian, while content stating no geometry or no box frames nothing.
- `geo.camera.zoom-into-range`: A camera outside the zoom window a specification paints across moves to the nearer edge of that window, and one inside it, or before a window with no finite ends or a floor above its ceiling, stays where it is.

### Boundaries

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.boundaries.select` | `selectBoundary` | `selectBoundary` |

- `geo.boundaries.select`: A map locks to the first of an organization's boundaries whose box holds its center, read as angles across the antimeridian with an edge inside, else to the first boundary, and to none where there is no boundary.

### Terrain

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.terrain.slope-aspect` | `slopeAspectFromNeighbours`, `TerrainNeighbours` | `slopeAspectFromNeighbours`, `TerrainNeighbours` |
| `geo.terrain.aspect-cardinal` | `aspectCardinal`, `AspectCardinal` | `aspectCardinal`, `AspectCardinal` |
| `geo.terrain.elevation-decode` | `decodeElevation`, `ElevationEncoding` | `decodeElevation`, `ElevationEncoding` |
| `geo.terrain.elevation-sample` | `elevationTilesAt`, `terrainFromElevationTiles`, `ElevationSource`, `ElevationTile`, `TerrainReading` | `elevationTilesAt`, `terrainFromElevationTiles`, `ElevationSource`, `ElevationTile`, `TerrainReading` |

- `geo.terrain.slope-aspect`: The slope and aspect at a point are a central-difference gradient over the elevations one spacing to its north, south, east and west, measured in the degree of the mean sphere with the east-west span shrunk by the cosine of the latitude; the aspect is the bearing of the descent within [0, 360), and none on flat ground.
- `geo.terrain.aspect-cardinal`: An aspect names the compass direction whose 45-degree sector, centred on that direction's heading, holds the bearing folded into [0, 360), a bearing on the edge between two sectors naming the one clockwise of it and a bearing of no finite number naming none.
- `geo.terrain.elevation-decode`: A pixel of an elevation tile reads as a height by the encoding its source's TileJSON names, `mapbox` where it names none: -10000 + (R × 65536 + G × 256 + B) × 0.1 meters under `mapbox`, R × 256 + G + B / 256 - 32768 meters under `terrarium`, and no height under any other.
- `geo.terrain.elevation-sample`: The terrain at a point is read off the elevation tiles at the source's deepest zoom, the height at the point and one ten-thousandth of a degree to its north, south, east and west each the bilinear mix of the four pixel centres around it in Web Mercator, and the slope and aspect `geo.terrain.slope-aspect` reads over those four, a tile not at hand reading none.

### Time zones

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.timezone.viewport` | `timeZoneViewport` | `timezoneViewport` |

- `geo.timezone.viewport`: An IANA zone maps to a map viewport through a static table, read under the name a runtime reports for it and a merged zone's successor, and the zone is an argument rather than a read of the environment.

### Itinerary data

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.data.segment-groups` | `applySegmentGroups` | `applySegmentGroups` |
| `geo.data.road-access-kinds` | `roadAccessKindOf`, `roadAccessValueKinds`, `RoadAccessKind` | `roadAccessKindOf`, `RoadAccessKind` |
| `geo.data.itinerary-resource` | `ItineraryResourceEngine`, `ItineraryResourceEngine.configure`, `ItineraryResourceEngine.state` | `ItineraryResourceEngine`, `ItineraryResourceEngine.configure`, `ItineraryResourceEngine.getSnapshot` |
| `geo.data.itinerary-cache` | `ItineraryResourceCache`, `ItineraryResourceCache.invalidate` | `invalidateItineraryResource` |
| `geo.data.itinerary-segments` | `itinerarySegments` | `itinerarySegments` |
| `geo.data.itinerary-waypoints` | `itineraryWaypoints` | `itineraryWaypoints` |
| `geo.data.road-access-stretches` | `roadAccessFeatures` | `roadAccessFeatures` |

- `geo.data.segment-groups`: Each listed segment group collapses at its first member into one segment of the group's identity whose geometry, analysis and road access ranges (indexes moved on by the coordinates before them) and figures are its members', a segment of no listed group passing as itself.
- `geo.data.road-access-kinds`: A stretch's access restrictions read as the most severe kind among them, forbidden, private, permit, service, local access then restricted, a value of no kind (permissive, agricultural, forestry) adding none and a value the table does not name reading as restricted.
- `geo.data.itinerary-resource`: An element handed an itinerary's id is idle with no id and resolving with nothing shown until its answer lands, then shows every projection at once, and an answer to an id, a surface or a client it no longer asks about never lands.
- `geo.data.itinerary-cache`: Answers are shared among elements by client, itinerary and surface, the most recently read kept to a fixed bound, a failure dropped at once so the next question asks again, and an invalidation dropping an itinerary's answers on both surfaces, or every answer of its client, and asking again for each element watching.
- `geo.data.itinerary-segments`: An itinerary's legs are its segments in chain order with each listed group collapsed into one leg naming the segments it stands for, each leg stating the server's distance, ascent, descent, duration and altitude band as its own section figures and no cumulative one.
- `geo.data.itinerary-waypoints`: An itinerary's waypoints read in chain order, each at the first point its geometry holds and none where it holds no point, carrying its colour, icon and name only where each is text and its details only where a member is in the shape it states, a block left with nothing reading as none.
- `geo.data.road-access-stretches`: A segment's restricted stretches are cut from its lines laid end to end between each stretch's two indexes inclusive, one piece per line it touches and never across the gap between two, clamped to the geometry, a piece of fewer than two positions and a stretch of no kind left out, each carrying its kind.

### Profiles, tables and cards

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.profile.elevation-series` | `buildElevationSeries`, `ElevationSeries` | `buildElevationSeries`, `ElevationSeries` |
| `geo.profile.totals` | `profileTotals` | `profileTotals` |
| `geo.profile.slope-ramp` | `slopeRampColor`, `ascentSlopeRamp`, `descentSlopeRamp`, `classifySteepness`, `SteepnessClass` | `slopeRampColor`, `ASCENT_RAMP_STOPS`, `DESCENT_RAMP_STOPS`, `classifySteepness`, `SteepnessClass` |
| `geo.profile.unit-formatting` | `formatDistance`, `formatElevation`, `formatSpeed`, `formatSlope`, `formatTemperature`, `formatDuration`, `formatHumidity`, `formatSnowfall`, `UnitPreferences` | `formatDistance`, `formatElevation`, `formatSpeed`, `formatSlope`, `formatTemperature`, `formatDuration`, `formatHumidity`, `formatSnowfall`, `UnitFormatOptions` |
| `geo.profile.split-duration` | `splitDuration` | `splitDuration` |
| `geo.profile.waypoint-summary` | `waypointSummary`, `waypointHeadline`, `waypointDeclaresNothing` | `waypointSummary`, `waypointHeadline`, `waypointDeclaresNothing` |
| `geo.profile.web-address` | `isWebAddress`, `linkedWebAddress` | `isWebAddress` |
| `geo.profile.climbs` | `detectClimbs`, `climbCategoryFor`, `ClimbCategory` | `detectClimbs`, `climbCategoryFor`, `ClimbCategory` |
| `geo.profile.range-totals` | `rangeTotals` | `rangeTotals` |
| `geo.profile.resolve-waypoints` | `resolveWaypoints`, `ProfileWaypoint` | `resolveWaypoints`, `Waypoint` |
| `geo.profile.info-bands` | `buildInfoBands`, `InfoRange` | `buildInfoBands`, `IndexedInfo` |
| `geo.profile.characteristics` | `profileCharacteristics`, `trailDifficultyRank` | `profileCharacteristics`, `trailDifficultyRank` |
| `geo.profile.committed-pace` | `committedPace` | `committedPaceOf` |
| `geo.profile.pace-clock` | `formatPaceClock`, `parsePaceClock`, `paceMinutesToClockNumber`, `paceClockNumberToMinutes` | `formatPaceClock`, `parsePaceClock`, `paceMinutesToClockNumber`, `paceClockNumberToMinutes` |
| `geo.profile.distance-ticks` | `distanceTicks` | `distanceTicks` |
| `geo.profile.plot-scale` | `profileX`, `profileY` | `profileX`, `profileY` |
| `geo.profile.domain` | `anchoredDomain`, `domainTicks`, `ProfileAnchor` | `anchoredDomain`, `domainTicks`, `ProfileAnchor` |
| `geo.profile.chart-path` | `profilePolyline`, `profileAreaPath`, `PlotCommand` | `profilePolyline`, `profileAreaPath` |
| `geo.profile.curve-stops` | `curveStops`, `CurveColor` | `curveStops`, `CurveColor` |
| `geo.profile.stretch-at` | `stretchAt` | `classAt` |
| `geo.profile.slope-stretches` | `slopeStretches`, `slopeBuckets` | `slopeColors`, `SLOPE_COLOR_STOPS` |
| `geo.profile.grade-at` | `gradeAt` | `gradeAt` |
| `geo.profile.scrub-grid` | `scrubGrid`, `scrubDistance` | `buildSlices`, `distanceForSlice` |
| `geo.profile.window-clamp` | `clampRange` | `clampRange` |
| `geo.profile.curve-placement` | `placeOnCurve`, `ProfilePlace` | `placeOnCurve`, `Waypoint` |
| `geo.profile.axis-label-culling` | `cullCrowdedLabels`, `AxisLabelBox` | `cullCrowdedLabels`, `AxisLabelBox` |
| `geo.profile.segment-rows` | `itinerarySegmentRows`, `ItinerarySegmentRowMetrics` | `itinerarySegmentRows`, `ItinerarySegmentRowMetrics` |
| `geo.profile.waypoint-rows` | `itineraryWaypointRows` | `itineraryWaypointRows` |
| `geo.profile.waypoint-card` | `waypointCard`, `WaypointCardFacts` | `waypointCard`, `WaypointCardFacts` |
| `geo.profile.waypoint-property-value` | `waypointPropertyValue`, `waypointPropertyLink` | `waypointPropertyValue`, `waypointPropertyIsLink` |
| `geo.profile.line-between` | `lineBetween` | `lineBetween` |
| `geo.profile.classification-colors` | `surfaceColor`, `wayTypeColor`, `unclassifiedColor` | `surfaceColors`, `wayTypeColors`, `surfaceColors.unknown` |

- `geo.profile.elevation-series`: A geometry projects onto a series of cumulative distance against altitude, downsampled to a declared ceiling, and that series is the input every other profile rule takes.
- `geo.profile.totals`: Ascent, descent and the altitude range ignore a rise or fall under the noise threshold, so a jittering track does not accumulate elevation it never climbed.
- `geo.profile.slope-ramp`: A slope in degrees paints from one of two ramps by sign, and the steepness classification is a separate table with its own thresholds.
- `geo.profile.unit-formatting`: Length, pace, slope and temperature are four independent preferences and every formatter reads its own, so an imperial reader who stored Celsius is shown Celsius.
- `geo.profile.split-duration`: A duration splits into whole hours and minutes rounded to the nearest minute, and a remainder that rounds to sixty rolls into the hours, so no surface shows sixty minutes.
- `geo.profile.waypoint-summary`: A place with no description states at most two clauses about itself, whether it is equipped and when it can be used, because the services are repeated as badges beneath it.
- `geo.profile.web-address`: An address a place records is a link only where it is an absolute http or https address the API accepts, read past the white space at its ends, and any other is stated as text.
- `geo.profile.climbs`: A climb opens at a 3 % grade over 300 m, closes at its summit once the grade has stayed under 1 % for 500 m, and is categorized by its length times its average grade.
- `geo.profile.range-totals`: A stretch's ascent and descent are differences of one cumulative scan of the whole series, read at the stretch's two ends, so an itinerary's stretches sum to its totals exactly.
- `geo.profile.resolve-waypoints`: A waypoint stands at every pass of the line near it, and a forward sweep in the order the waypoints are listed gives each its primary pass, so a loop's start and finish stand at zero and at the total.
- `geo.profile.info-bands`: An analysis entry's vertex range is placed on the distance axis the elevation series walks, with bands of no length dropped and touching bands of one value merged.
- `geo.profile.characteristics`: An itinerary's summary folds its segments' stored metrics, each figure null until a segment states it, with a duration some segments lack marked partial and an unranked difficulty taking no place on the range.
- `geo.profile.committed-pace`: An itinerary's committed pace is its segments' total distance over their total duration, in km/h, leaving out a segment unless its distance is a finite number of zero or more and its duration a finite number above zero, and null where none is left.
- `geo.profile.pace-clock`: A pace in decimal minutes reads as an m:ss clock rounded to whole seconds before it is split, parses back from that clock or a bare number of minutes, and travels through a numeric input as minutes plus seconds over 100.
- `geo.profile.distance-ticks`: A distance axis is labelled at the multiples of a 1, 2 or 5 step in the reader's distance unit, the step the smallest such at least the range over the stop count asked for.
- `geo.profile.plot-scale`: A profile is drawn in a 100-unit square, distance running from the window's start at 0 to its end at 100 clamped to the frame and elevation inverted between a top inset of 6 and a floor of 96, a domain with no span drawn at the middle.
- `geo.profile.domain`: A profile's elevation domain is the extent of the series, or of the stretch its window holds where anchored on the window, widened to at least 50 m about its middle and rounded outward by 10, 50 or 100 m as the span passes 200 and 1,000 m, from zero where anchored on sea level, from 0 to 50 m where the series holds no elevation, and labelled at its floor, middle and ceiling.
- `geo.profile.chart-path`: A profile's line joins its samples in distance order and its area closes that line against the bottom of the frame, a zoomed chart drawing the samples in its window plus one beyond each end, unclamped, so the line leaves the frame at the ground's own slope.
- `geo.profile.curve-stops`: Coloured stretches paint the curve as a gradient of hard edges in distance order, the earlier of two overlapping stretches keeping the shared ground and uncovered ground stated as no colour for the renderer's accent, and there is no gradient where no stretch has length.
- `geo.profile.stretch-at`: The stretch a distance reads is the one that starts at or before it and ends after it, the later stretch at a shared boundary, the last meter of a stretch nothing follows keeping that stretch, and none in a gap.
- `geo.profile.slope-stretches`: A grade buckets into steep descent, descent, flat, ascent or steep ascent at -10, -3, 3 and 10 degrees, a stretch longer than the 100 m grade window reading as its own slope and a denser one over the window, and neighbours of one bucket merge into one stretch.
- `geo.profile.grade-at`: The grade at a distance is the slope in degrees across the 100 m of curve centred on it, read on the line between samples and cut to the part the curve holds near either end, negative for a descent and none where that part has no length.
- `geo.profile.scrub-grid`: A scrub reads the window through 240 equal columns, each resolving to the sample nearest the distance at its centre, the earlier sample taking a tie.
- `geo.profile.window-clamp`: A profile's window is ordered, held inside the itinerary, never narrower than 100 m and widened from whichever end has room, an end that is no number reading as the itinerary's end on that side and an itinerary under 100 m or of no length being its own whole width.
- `geo.profile.curve-placement`: Each placed pass of a waypoint within the window stands at its plot position, pinned on the curve at the curve's height unless it is unpinned or the series has no elevation, named under the axis where it divides the itinerary, and marked as a cut-off where it publishes one, elevation or not.
- `geo.profile.axis-label-culling`: The first and last place names under a distance axis are always drawn, and each name between them only where it clears both the last one drawn and the final name by an 8-pixel gutter, read left to right.
- `geo.profile.segment-rows`: An itinerary's legs are its table rows in chain order, each spanning the length of its own geometry on the distance axis and stating its server figures over those read off the one cumulative scan, with running totals a stated cumulative resets.
- `geo.profile.waypoint-rows`: An itinerary's places are its waypoint rows, one per placed pass in itinerary order, each reached from the row before, stating its altitude on the curve and its figures off the one cumulative scan, a dividing place's stated figures applying to its primary pass only and carrying into the running totals after it.
- `geo.profile.waypoint-card`: A place's card states its services by name, its cut-off only through the caller's formatter then its planned stop, its contact lines as opening hours, address, phone, email, website and booking page, a phone and an email carrying their scheme, and its custom fields by their declared format, a section with no line stating nothing.
- `geo.profile.waypoint-property-value`: A custom field reads as a duration, a distance or a number of at most three decimals where its declared format says so and its value is a finite number, read as ECMAScript's `Number` reads a text, as an instant only through the caller's formatter and as the text it holds otherwise, a url field linking only where its value is a web address.
- `geo.profile.line-between`: The stretch between two distances is cut from the series as a line starting and ending where the stretch does, each end read on the curve between its two samples with the samples strictly between, and none where the stretch holds no length of the curve.
- `geo.profile.classification-colors`: A surface and a way type each paint in one fixed colour of their own, an unclassified stretch in the neutral grey the two share.

### Map style

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.style.segment-colors` | `segmentColorAt`, `assignDistinctColors`, `livelyPalette` | `segmentColorAt`, `assignDistinctColors`, `LIVELY_PALETTE` |
| `geo.style.label-language` | `labelLanguage`, `labelLanguages` | `clampMapLanguage`, `MAP_LANGUAGES` |
| `geo.style.label-relabel` | `relabelTextField` | `applyLanguageToStyle` |
| `geo.style.map-paint` | `MapPaint`, `MapPaint.standard` | `MapPaint`, `defaultMapPaint` |
| `geo.style.itinerary-stroke` | `itineraryStrokeStyle`, `ItineraryStroke` | `itineraryLineSpec`, `itineraryDashedLineSpec`, `itineraryCasingSpec` |
| `geo.style.theme-tokens` | `themeTokenValue`, `ThemeToken`, `ThemeScheme`, `ElementTokens` | `elementsTokens`, `elementTokenStyle`, `ElementTokens` |

- `geo.style.segment-colors`: A segment's colour is positional over a fixed palette, and a batch of them is spread deterministically so a regenerate that keeps some candidates does not reshuffle the rest.
- `geo.style.label-language`: A label language is read from a language tag by its primary subtag, compared whole and without regard to case against the languages a map labels in, and a tag naming none of them, or no tag, labels in English.
- `geo.style.label-relabel`: A label that reads a name field reads the language's name with the default name as its fallback, keeping the rest of the label, and a label the walk cannot rewrite without saying one name twice or dropping text is left as it is.
- `geo.style.map-paint`: A map's paint is the shipped paint with a consumer's patch folded on, a list replacing the shipped one whole, two objects merging member by member and a member written null left out, so a rank band added or a casing colour changed leaves every other value as shipped.
- `geo.style.itinerary-stroke`: An itinerary drawn from data takes the stroke its tiles are drawn with, round caps and joins, a width interpolated linearly on zoom over one stop table, a casing beneath it wider at every stop and a provisional stroke dashed at reduced opacity.
- `geo.style.theme-tokens`: An element's token reads the value its consumer states, else the table's dark value under the dark scheme where the table states one, else the table's light value, so a consumer's value stands in both schemes.

### Layers and overlays

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.layers.order` | `tileLayerRank`, `tileSourceLayerRanks` | `rankForTileLayer`, `tileSourceLayerRanks` |
| `geo.layers.paint-zoom-range` | `paintZoomRange` | `paintZoomRange` |
| `geo.layers.data-geojson` | `directionsGeoJson`, `isochronesGeoJson`, `matrixGeoJson`, `placesGeoJson`, `poisGeoJson`, `suggestionsGeoJson` | `directionsToGeoJson`, `isochronesToGeoJson`, `matrixToGeoJson`, `placesToGeoJson`, `poisToGeoJson`, `suggestionsToGeoJson` |
| `geo.layers.overlay-lookup` | `findOverlay`, `OverlayKind` | `findOverlay`, `OverlayKind` |
| `geo.layers.isochrone-color` | `isochroneColor`, `isochroneRamp` | `isochroneColor`, `ISOCHRONE_RAMP` |
| `geo.layers.matrix-width` | `matrixLineWidth` | `matrixLineWidth` |
| `geo.layers.poi-style` | `poiStyleOf`, `poiCategoryStyles`, `PoiStyle` | `poiCategoryStyles`, `PoiCategoryStyle` |
| `geo.layers.poi-category` | `poiCategoryOf`, `poiTileCategories` | `omtCategoryToPoiEnum` |
| `geo.layers.selection` | `LayersSelectionEngine`, `LayersSelectionEngine.setOverlay`, `LayersSelectionEngine.toggleEnrichment`, `LayersSelectionEngine.setTerrain` | `LayersSelectionEngine`, `LayersSelectionEngine.setOverlay`, `LayersSelectionEngine.toggleEnrichment`, `LayersSelectionEngine.setTerrain` |
| `geo.layers.selection-outcome` | `LayersSelectionEngine`, `LayersSelectionEngine.configure`, `LayersSelectionEngine.state` | `LayersSelectionEngine`, `LayersSelectionEngine.configure`, `LayersSelectionEngine.getSnapshot` |
| `geo.layers.selection-instant` | `LayersSelectionEngine.setInstant`, `LayersSelection.instant`, `LayersSelectionTarget.setInstant` | `LayersSelectionEngine.setInstant`, `LayersSelectionSnapshot.instant`, `LayersSelectionTarget.setInstant` |
| `geo.layers.overlay-instant` | `overlayInstant` | `overlayInstant` |
| `geo.layers.tile-timestamp` | `timestampedSources`, `TimestampedSource` | `timestampedSources`, `TimestampedSource` |
| `geo.layers.time-window` | `timeSliderWindow`, `TimeSliderWindow` | `timeSliderWindow`, `TimeSliderWindow` |
| `geo.layers.time-slider` | `timeSliderTicks`, `timeSliderRelease`, `TimeSliderTick` | `timeSliderTicks`, `timeSliderRelease`, `TimeSliderTick` |
| `geo.layers.time-readout` | `timeSliderReadout`, `TimeSliderReadout` | `timeSliderReadout`, `TimeSliderReadout` |

- `geo.layers.order`: A tile layer draws at the rank its source layer declares, except a hillshade, which is always the terrain rank whatever its source layer says.
- `geo.layers.paint-zoom-range`: A tile specification paints from the lowest zoom_min to the highest zoom_max of every layer of every source, and at no zoom where no source holds a layer.
- `geo.layers.data-geojson`: A Data API answer is drawn as one GeoJSON feature per band, route, suggestion, place or POI carrying its datum and drawing properties, and a matrix as one weighted connector per solved pair of distinct locations followed by a point per location.
- `geo.layers.overlay-lookup`: An overlay slug names the first overlay carrying it in the layers manifest's order, among the categories of the kind asked for where one is named, and nothing where none carries it.
- `geo.layers.isochrone-color`: An isochrone band's fill is the ramp's colour at its place in the answer, the ramp taken again from its first stop past its last, and an index below zero reads the first stop.
- `geo.layers.matrix-width`: A matrix connector's width scales its cost between the cheapest and the dearest of its grid onto one to six pixels, held within them, and is the least where the grid has no spread or a value or a bound is no finite number.
- `geo.layers.poi-style`: A point of interest of each Data API category is drawn with the glyph and the colour one table names, the table the POI tiles are painted with, and every category the API declares has an entry.
- `geo.layers.poi-category`: A point of interest's tile category reads as the API's category through one table, without regard to case, several tile categories naming one category and a category the table does not name reading as none.
- `geo.layers.selection`: A layers selection holds one classic overlay, which a second press on it clears, beside enrichments toggled on and off in the order they were turned on, and states the terrain the map reports once the catalogue lands unless one was chosen first.
- `geo.layers.selection-outcome`: A command the map refuses, or a catalogue read that fails, keeps what was asked for and reports the refusal until a later command settles or a catalogue lands, the same map handed again asking again where its read failed, and a replaced map starts an empty selection on which no answer owed to the earlier map lands.
- `geo.layers.selection-instant`: A layers selection holds the instant a reader pins, or none for the clock's reading, and drives the map to it as a command like any other, asked again for the instant it holds, kept and reported where the map refuses it, standing through every other command and cleared by a replaced map.
- `geo.layers.overlay-instant`: The moment a map's time-dependent surfaces show is a pinned instant as it is, to the millisecond, or with none pinned the start of the minute the clock reads, a pin that names no instant read as none, and nothing under a clock that reads no instant with none pinned.
- `geo.layers.tile-timestamp`: The selected classic overlay the server stamps is asked for an instant by each of its sources' tile addresses carrying it, in UTC to the millisecond, as their `timestamp` parameter, set where the first one stands or appended, every other one and every empty pair dropped and every other part kept as written, and an address with no scheme kept as it is.
- `geo.layers.time-window`: A time slider's track runs from 71 hours before the clock's reading to 144 hours after it at one stop an hour, a stop standing for its hour's instant and an instant placed at its nearest stop, a half hour at the later one, held to the track, and a clock that reads no instant, or a track past the instants an instant type holds, laying out a track of no instant.
- `geo.layers.time-slider`: A time slider ticks the stop of the clock's reading and every whole day either side of it, labelling two days back, the clock's reading, two days ahead and five days ahead, fills from the clock's reading to its thumb at the pinned instant's stop, and commits a release on the clock's reading as no pin and on another stop as its instant, held and committing nothing on a track of no instant.
- `geo.layers.time-readout`: A time slider's thumb reads the instant its stop stands for beside its offset from the clock's reading, `layers.timeNow` at none, whole hours under a day and whole days truncated toward the clock's reading from a day on, and its offset alone at a stop of no instant.

### Icons

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.icons.resolution` | `waypointSpriteId`, `amenityGlyph`, `activityMarkerGlyph`, `roadAccessGlyph` | `waypointIconImageId`, `amenityGlyph`, `activityMarkerIcon`, `roadAccessGlyph` |
| `geo.icons.glyph-parse` | `parseGlyph`, `GlyphShape` | `parseGlyph`, `GlyphElement` |
| `geo.icons.glyph-paint` | `glyphPaint` | `glyphPaint` |
| `geo.icons.bundled-sets` | `GlyphSet.marker`, `GlyphSet.control` | `lucideIconProvider`, `lucideUiIconProvider` |
| `geo.icons.glyph-set` | `GlyphSet` | `IconProvider`, `createIconProvider` |
| `geo.icons.glyph-set-chain` | `GlyphSet.chaining` | `fallbackProvider` |

- `geo.icons.resolution`: A waypoint's sprite id is a pure function of its icon and its colour, so the same waypoint always resolves to the same image.
- `geo.icons.glyph-parse`: An icon's markup is read into shapes in document order, keeping the allowed attributes, a fill or a stroke only as `currentColor` or `none`, a line's cap and join only as SVG names them and a miter limit only as a number of at least 1, and each group's transform folded outermost first, while every other element is dropped with all it holds and nothing is executed or fetched.
- `geo.icons.glyph-paint`: A glyph is painted by its set, a fill set filling each shape in the current colour and stroking none and a stroke set stroking each shape in the current colour at the set's width with round caps and joins and filling none, a shape's own fill, stroke, cap, join and miter limit replacing the set's for that shape alone.
- `geo.icons.bundled-sets`: The bundled marker set draws every waypoint icon, amenity badge, restricted-stretch kind and point-of-interest glyph, and the bundled control set every control role, each with the markup the contract's glyph table holds, both stroked 2 units wide in a 24-unit box.
- `geo.icons.glyph-set`: A glyph set is drawn in the paint it states, in a square box of 24 units and at a stroke width of 2 unless it states others, and is refused where its name is empty, its paint neither fill nor stroke, its box no finite number above 0, or its width no finite number, 0 or less under stroke and below 0 under fill.
- `geo.icons.glyph-set-chain`: A chain of glyph sets answers each glyph from the first set that holds it and names every glyph any set holds, all drawn in the first set's paint, box and width, and is refused where a later set differs from the first in paint or box, or in width where the first strokes.

### Search

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.search.highlight` | `highlightParts` | `highlightRanges`, `splitByRanges` |
| `geo.search.query` | `searchQueryChangeOf`, `SearchQueryChange`, `isSearchLimit` | `SearchEngine.setQuery`, `SEARCH_LIMIT_MAX` |
| `geo.search.viewport-bounds` | `searchViewportBounds` | `viewportBoundsFrom` |
| `geo.search.rows` | `placeRow`, `poiRow`, `wayRow`, `itineraryRow`, `zoneRow`, `collectionRow`, `SearchRow` | `placeRow`, `poiRow`, `wayRow`, `itineraryRow`, `zoneRow`, `collectionRow`, `SearchRow` |
| `geo.search.filters` | `sectionsForFilter`, `SearchFilter` | `sectionsForFilter`, `SearchFilter` |
| `geo.search.section-order` | `searchSectionOrder` | `SECTION_ORDER` |
| `geo.search.typing-pause` | `searchTypingPause`, `SearchEngine.setQuery` | `SEARCH_DEBOUNCE_MS`, `SearchEngine.setQuery` |
| `geo.search.live-round` | `SearchEngine`, `SearchEngine.setQuery`, `SearchEngine.configure`, `SearchEngine.retry` | `SearchEngine`, `SearchEngine.setQuery`, `SearchEngine.configure`, `SearchEngine.retry` |
| `geo.search.broaden` | `SearchEngine`, `SearchEngine.setConfined` | `SearchEngine`, `SearchEngine.setViewportScope` |
| `geo.search.viewport-refresh` | `searchViewportRefreshPause`, `SearchEngine.setCamera` | `SEARCH_VIEWPORT_REFRESH_MS`, `SearchViewport` |
| `geo.search.describe` | `describePlace`, `describePoi`, `describeWay` | `describePlace`, `describePoi`, `describeWay` |

- `geo.search.highlight`: A search query matches a title without regard to case or accents, and every emphasized run is a run of the title as written, so a fold that changes a string's length never moves the emphasis; a sharp s reads as the two letters it stands for and a Latin letter written with a stroke as the letter under the stroke, and a run is made of code points with their combining marks.
- `geo.search.query`: A search round asks the query trimmed of its white space, which is the round's identity, so a query that trims to the one settled or to nothing asks nothing, and its cap is a whole number from 1 to 50 or refused before a round is asked.
- `geo.search.viewport-bounds`: The box a viewport-restricted search sends is a camera's centre widened by 360 / 2^zoom degrees, capped at 90, its latitude span narrowed by the cosine of the centre's latitude, and clamped so it never crosses the antimeridian or a pole.
- `geo.search.rows`: A search result renders as a row identified by its kind and its own identity, titled by its name or a name made from its category, emphasizing the runs the query matches, and no row where its point names no position.
- `geo.search.filters`: A search filter shows a fixed set of result sections in render order: all of them, the itineraries and collections, the places, POIs and ways, or the zones.
- `geo.search.section-order`: A search asks one request per branch, each enabling that branch alone under the round's cap, and renders its sections in the order itineraries, places, ways, points of interest, zones and collections, or in the order a caller lists its branches, a branch listed twice asked once in the place it is first listed, whatever order the answers land in, its filters offered in the order all, itineraries, places and zones.
- `geo.search.typing-pause`: A round is asked once the query has gone unchanged for the typing pause, 150 ms unless the search is given another, a pause below zero refused, a query the search starts with owing none, and until it is asked the list shows the skeleton of the round the query is owed, never rows answering another query.
- `geo.search.live-round`: Only the latest round writes, a new query, a changed scope, language, cap, branch list or unit system, or a retry starting a fresh round that abandons the one in flight, whose answers then land nowhere, and each branch of the live round filling its own section as it answers, a failed branch filling only its own, and a round abandoned before its requests leave sending none.
- `geo.search.broaden`: A round confined to the visible area whose every branch settled empty with none failed asks once more everywhere and says it fell back, never twice and never after a pan, and a round counts as settled only once the last round it asks has answered.
- `geo.search.viewport-refresh`: While a search is open, confined to the visible area and holding a query, the camera coming to rest asks it again after a 350 ms pause that folds a gesture into one round, which replaces the rows in place with no section loading and never broadens.
- `geo.search.describe`: A result's second line leads with what it is, worded for the reader, then one distinguishing figure, a point of interest's elevation from 100 m else its distance and a way's grade other than hiking else its surface, then its town or region and its country with its flag, leaving out any token that repeats the title, an address reading as its own label and a country as its category alone.

### Navigation

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `geo.navigation.steps` | `readDirectionsSteps`, `readItineraryDirectionsSteps` | `readDirectionsSteps`, `readItineraryDirectionsSteps` |
| `geo.navigation.stepless-route` | `followedRouteOf`, `NavigationRoute` | `followedRouteOf`, `NavigationRoute` |
| `geo.navigation.instruction-keys` | `stepInstruction`, `NavigationInstructionKey` | `stepInstruction`, `NavigationInstructionKey` |
| `geo.navigation.progress` | `navigationProgressAt`, `NavigationRemainder` | `navigationProgressAt`, `NavigationRemainder` |
| `geo.navigation.itinerary-route` | `readItineraryRoute` | `readItineraryRoute` |

- `geo.navigation.steps`: A route's turn-by-turn steps, as the Data API or REST writes them, read into REST's one vocabulary, a maneuver this build does not know read as `unknown` and an empty name or the `-` the API writes as no name, and a list whose vertex ranges do not tile the route's geometry in travel order is refused whole rather than repaired.
- `geo.navigation.stepless-route`: A route with no steps is followed as a departure over its whole geometry, carrying the route's duration and its great-circle length, then an arrival on its last vertex, while a route with steps is followed by them as read.
- `geo.navigation.instruction-keys`: A step's instruction resolves to a copy key and its arguments, never to a sentence: its maneuver's own key with the way's name where one is named and that key's `Plain` twin where none is, a waypoint an itinerary's route passes said so as `waypoint` with its name or `waypointPlain`, and at a roundabout naming an exit greater than 0 `roundaboutExit` with the exit and the name, or `roundaboutExitPlain` with the exit alone.
- `geo.navigation.progress`: The distance and the time left, to the next maneuver and to the arrival, are read from the traveller's foot on the nearest segment ahead of their last progress, measured along the route's great-circle length and timed by the steps' own durations prorated by distance within the current step, and progress never moves back.
- `geo.navigation.itinerary-route`: An itinerary's segments are joined, in a stable chain order by position, into one route to follow, their lines laid end to end with a vertex two lines share kept once, each segment followed by its own steps where they tile its line and as a departure and an arrival otherwise, every arrival but the last said as a `waypoint` named by the itinerary's waypoint within 60 m of where its segment ends and a departure naming no way after it folded into it, and the duration the segments' durations summed, none where one holding a line states none.

## Map

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

### The map engine

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.engine.patch` | `MapEngine.editLayer` | `MountayaMap.editLayer` |
| `map.engine.closed` | `MapEngine.close` | `MountayaMap.destroy` |

- `map.engine.patch`: A patch merged onto what a map holds replaces each member it states and leaves every member it states as undefined as held, keeping null, false, zero and the empty string as the values they are, a patch of a layer the map does not draw refused with the map left as it was.
- `map.engine.closed`: A closed map is inert, a command doing nothing, a drawing call drawing nothing, a point query answering no feature, a projection answering no number, every getter reading as the map ended and no event told, while a read through the client still answers.

### Camera

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.camera.pose` | `MapEngine.jump`, `MapEngine.ease`, `MapEngine.fly`, `CameraTarget` | `MountayaMap.jumpTo`, `MountayaMap.easeTo`, `MountayaMap.flyTo`, `CameraPose` |
| `map.camera.fit-options` | `CameraFit`, `MapEngine.fitBounds` | `FitBoundsOptions`, `MountayaMap.fitBounds` |
| `map.camera.zoom-window` | `MapEngine.setZoomBounds`, `ZoomLimit` | `MountayaMap.setConstraints`, `CameraConstraints.zoom` |
| `map.camera.control-moves` | `MapEngine.zoomIn`, `MapEngine.zoomOut`, `MapEngine.resetNorth` | `MountayaMap.zoomIn`, `MountayaMap.zoomOut`, `MountayaMap.resetNorth` |
| `map.camera.locate` | `MapEngine.locate`, `GeolocationFix`, `GeolocationRefusal` | `MountayaMap.locate`, `GeolocationFix` |

- `map.camera.pose`: A camera move takes the members its pose states and keeps the rest where the camera has them, a centre written past the antimeridian passed on as written, and is refused before anything moves where the centre is not two finite numbers with a latitude within the poles or a zoom, bearing or pitch is not a finite number.
- `map.camera.fit-options`: A fit asked for as `true` frames with no padding under the zoom window's ceiling, a fit given options frames with the members it states, and a padding or duration that is not a finite number from 0 up, a ceiling that is not finite, or a fit that is neither is refused before anything is read or drawn.
- `map.camera.zoom-window`: A zoom window moves each limit a call states and keeps the other, a released limit going back to the renderer's floor or default ceiling, refuses with nothing applied a limit that is not finite, a floor under the renderer's floor or a floor above the ceiling, and is told once each time it moves.
- `map.camera.control-moves`: A zoom step moves the camera one level in or out from the zoom it stands at, unrounded and held within the zoom window, and a reset of north turns the bearing and the pitch to 0, each keeping every other member of the camera.
- `map.camera.locate`: Locating asks the map's geolocation seam for one fix and frames it, a fix the seam refuses moving nothing and naming its reason, `denied`, `no_api` or `unavailable`, and a closed map refusing without asking the seam.

### Queries

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.query.layers` | `MapEngine.featuresAt`, `MapEngine.poisAt`, `MapEngine.zonesAt`, `MapEngine.itinerariesAt` | `MountayaMap.featuresAt`, `MountayaMap.poisAt`, `MountayaMap.zonesAt`, `MountayaMap.itinerariesAt` |
| `map.query.feature-shape` | `QueriedFeature`, `MapEngine.featuresAt` | `QueriedFeature`, `MountayaMap.featuresAt` |
| `map.query.elevation-at` | `MapEngine.elevationAt` | `MountayaMap.elevationAt` |

- `map.query.layers`: A point query asks the renderer only about the layers the map placed in its rank bands, every band for features, the POI band for POIs, the zone band for zones and the itinerary line and point bands for itineraries, never about a base-style layer or a layer the live style no longer holds, and asks nothing when no layer is left.
- `map.query.feature-shape`: A queried feature is answered as its id, its string, number, boolean or null properties, its geometry, and the layer and source layer that drew it, once per layer that drew it.
- `map.query.elevation-at`: The elevation at a point is the Data API's terrain sample there, asked for its elevation alone, and none where the sample states none, never read off the drawn terrain.

### Events

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.events.pointer` | `MapEngine.events`, `MapEvent`, `MapTap` | `MountayaMap.on`, `MountayaMapEvent`, `MountayaMapEvents.click` |
| `map.events.feature-hover` | `MapEngine.events`, `MapEvent` | `MountayaMap.on`, `MountayaMapEvent` |
| `map.events.access-refused` | `MapEngine.events`, `MapEvent` | `MountayaMap.on`, `MountayaMapEvent` |
| `map.events.access-standing` | `MapEngine.events`, `MapEvent` | `MountayaMap.on`, `MountayaMapEvent` |

- `map.events.pointer`: A click, and a right-click or long press, are told with the position under the pointer and the point the renderer read, its longitude brought within [-180, 180] only where it is past it, a click on the map's own features told again with every such feature topmost first, and a gesture an edit took told to nobody.
- `map.events.feature-hover`: The pointer over a map is told with the features of the itinerary line and point bands under it, topmost first, for the position it ended each frame on, and with none as it leaves the canvas.
- `map.events.access-refused`: A failure of one of the map's own requests carrying 401, 402 or 403, the read of the layers manifest included, is told as an access refusal with its status and the address refused and never also as an error, and a failure carrying any other status, or none, is an error, but a 401 or a 403 answering a request the renderer made under a credential the client no longer sends is told to nobody.
- `map.events.access-standing`: A refusal of access stands for its source until a tile of that source loads or the source leaves the style, one naming no source until the next style loads, and the end of the last standing refusal is told once, a refusal told to nobody starting none.

### Specifications

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.specification.style` | `MapEngine.setSpecification` | `MountayaMap.setSpecification` |

- `map.specification.style`: A tile specification is drawn as the style's own sources and layers in the order it lists them, each member under the name the style spec gives it, a source of any kind but vector stating its size as its tile size, a raster or hillshade layer carrying no source layer and no filter, a null paint or layout and an empty source layer left out, and a layer the caller hid born hidden.

### Style and attribution

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.style.attribution` | `MapEngine.credits`, `MapSource.attribution` | `MountayaMap.getCredits`, `TileSource.attribution` |
| `map.style.label-scope` | `MapEngine.setLabelLanguage` | `MountayaMap.setLanguage` |

- `map.style.attribution`: A map credits each source it draws by that source's own attribution and always credits Mountaya, each credit once by its exact text and a blank one left out.
- `map.style.label-scope`: A map's label language relabels only the base style's labels, never a layer the map placed, and is applied again to every base map a switch brings in.

### Base map and terrain

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.basemap.terrain` | `MapEngine.setTerrain`, `MapEngine.setTerrainVariant`, `MapEngine.terrain` | `MountayaMap.setTerrain`, `MountayaMap.setTerrainVariant`, `MountayaMap.getTerrain` |

- `map.basemap.terrain`: A map's base map is the manifest's terrain the slug names, its first terrain where none is named, in the variant the host asked for last and light until it asks for dark, and a slug the manifest does not hold, or a manifest of no terrain, is refused with the base map left as it was.

### Layers

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.layers.rank-insertion` | `MapEngine.addLayer`, `MapEngine.removeLayer`, `MapLayer`, `LayerRank` | `MountayaMap.addLayer`, `MountayaMap.removeLayer`, `LayerRank` |
| `map.layers.keys` | `MapEngine.drawnLayerKeys`, `MapEngine.layerIds`, `MapEngine.isKeyVisible` | `MountayaMap.drawnLayerKeys`, `MountayaMap.layerIdsForKey`, `MountayaMap.isKeyVisible` |
| `map.layers.visibility` | `MapEngine.setLayerVisibility`, `MapEngine.isLayerVisible` | `MountayaMap.setLayerVisibility`, `MountayaMap.isLayerVisible` |
| `map.layers.manifest` | `MapEngine.loadLayers`, `MapEngine.layersManifest`, `MapEngine.setLayersOrganization` | `MountayaMap.loadLayers`, `MountayaMap.getLayers`, `MountayaMap.setLayersOrganization` |

- `map.layers.rank-insertion`: A ranked layer is placed beneath the lowest layer of a greater rank and above every other, so layers of one rank stack in the order they were placed and the base map's own layers stay beneath every rank, and a layer placed again keeps its place at its own rank and moves to the top of its new band at another.
- `map.layers.keys`: A drawn concept is named by its manifest key, listed once in the order its content was first asked for and narrowed to a band where one is named, its layers are every drawn layer carrying the key, and it is shown while none of them is hidden, a key that draws nothing reading as shown and the empty key naming no concept.
- `map.layers.visibility`: A layer's visibility is the caller's word kept by its id, before the layer is drawn, across a base-map switch and through a redraw of the content holding it, a layer born hidden where it is hidden, and forgotten once that content is cleared.
- `map.layers.manifest`: The layers catalogue is read once for the studio scope the map names and shared by every lookup until the scope moves, a read that fails being kept by nobody so the next asks again, one that lands after the scope moved giving way to a read for the current scope, and a closed map answering the catalogue it held and refusing a load where it held none.

### Overlays

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.overlays.composition` | `MapEngine.setOverlay`, `MapEngine.clearOverlay`, `MapEngine.addEnrichment`, `MapEngine.removeEnrichment`, `MapEngine.enrichments` | `MountayaMap.setOverlay`, `MountayaMap.clearOverlay`, `MountayaMap.addEnrichment`, `MountayaMap.removeEnrichment`, `MountayaMap.getEnrichments` |
| `map.overlays.instant` | `MapEngine.setInstant`, `MapEngine.instant` | `MountayaMap.setInstant`, `MountayaMap.getInstant` |

- `map.overlays.composition`: A classic overlay takes the place of the one drawn and an enrichment stacks under its own slug in the order first added, each looked up in the manifest under its kind, and a slug the manifest holds only under the other kind is refused with what is drawn left as it was.
- `map.overlays.instant`: A map draws the classic overlay the server stamps for the instant pinned last, each address of its source stamped as `geo.layers.tile-timestamp` stamps it and asked again in place as the pin moves, kept over a base-map switch and drawn from the manifest's own addresses with none pinned, never stamps an enrichment or a classic overlay the server does not stamp, and tells a refusal of a stamped tile as it tells any.

### Itineraries

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.slots.latest-request` | `MapEngine.setItinerary`, `MapEngine.setItineraries`, `MapEngine.setCollection`, `MapEngine.setZones`, `MapEngine.clearItinerary`, `MapEngine.clearCollection` | `MountayaMap.setItinerary`, `MountayaMap.setItineraries`, `MountayaMap.setCollection`, `MountayaMap.setZones`, `MountayaMap.clearItinerary`, `MountayaMap.clearCollection` |

- `map.slots.latest-request`: Each kind of content a map holds draws its latest request, a load that answers after a later request or a clear drawing nothing, and a request withdrawn by its caller before it draws giving the content back to the request it replaced.

### Directions, isochrones and matrices

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.analysis.slots` | `MapEngine.addDirections`, `MapEngine.addIsochrones`, `MapEngine.addMatrix`, `MapEngine.addPlaces`, `MapEngine.addSuggestions`, `MapEngine.setPointsOfInterest`, `MapEngine.removeAnalysis` | `MountayaMap.addDirections`, `MountayaMap.addIsochrones`, `MountayaMap.addMatrix`, `MountayaMap.addPlaces`, `MountayaMap.addSuggestions`, `MountayaMap.setPointsOfInterest`, `MountayaMap.removeDirections`, `MountayaMap.removeIsochrones`, `MountayaMap.removeMatrix`, `MountayaMap.removePlaces`, `MountayaMap.removeSuggestions` |
| `map.analysis.edit` | `MapEngine.editDirections`, `MapEngine.editIsochrones`, `MapEngine.editMatrix`, `MapEngine.editPlaces`, `MapEngine.editSuggestions`, `MapEngine.editPointsOfInterest` | `MountayaMap.editDirections`, `MountayaMap.editIsochrones`, `MountayaMap.editMatrix`, `MountayaMap.editPlaces`, `MountayaMap.editSuggestions`, `MountayaMap.editPointsOfInterest` |

- `map.analysis.slots`: Each add of a Data API result draws under an id and a source of its own, so results of one kind accumulate and each is removed alone, points of interest are one result a second one replaces, a clear removes every result of its kind and no other, and removing an id not drawn changes nothing.
- `map.analysis.edit`: An edit merges the members its patch states onto the input the result was drawn from and asks again, a patch that states none redraws the result held under the merged draw options and asks nothing, and a patch for a result drawn without an input, or for an id holding another kind, is refused.

### Geometry

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.geometry.slots` | `MapEngine.setGeometry`, `MapEngine.editGeometry`, `MapEngine.clearGeometry`, `MapEngine.geometry`, `GeometrySlot` | `MountayaMap.setPreview`, `MountayaMap.setHighlight`, `MountayaMap.setEmphasis`, `MountayaMap.editPreview`, `MountayaMap.editHighlight`, `MountayaMap.clearPreview`, `MountayaMap.clearHighlight`, `MountayaMap.clearEmphasis`, `MountayaMap.getGeometry`, `GeometrySlot` |

- `map.geometry.slots`: A preview, a highlight and an emphasis are three slots of one geometry each, so writing one never clears another, an edit keeps the geometry or the colour it does not name, and a clear takes the slot down and gives it back its default colour.

### Markers

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.marker.lifecycle` | `MapEngine.addMarker`, `MapEngine.editMarker`, `MapEngine.removeMarker`, `MapMarker` | `MountayaMap.addMarker`, `MountayaMap.editMarker`, `MountayaMap.removeMarker`, `MarkerOptions` |

- `map.marker.lifecycle`: A marker added under an id in use replaces the one pinned there, an edit keeps each member its patch does not state and the marker's place and is refused for an id nothing is pinned under, a removal of such an id changes nothing, and a position whose first two numbers are not finite or whose latitude lies outside -90 to 90 is refused with whatever is pinned left as it was.

### Search results

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.search.result-highlight` | `MapEngine.setSearchHighlight`, `SearchHighlight` | `MountayaMap.setSearchHighlight`, `SearchHighlight` |

- `map.search.result-highlight`: A picked result is drawn above everything else, one at a time, in the map's accent, a place as the point-of-interest pin carrying a point, a point of interest as its category's own pin in its category's colour, and a way as its line with its two ends, else its extent dashed across the antimeridian where it crosses it, else a pin at its anchor.

### Profile cursor

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.profile.cursor-marker` | `showCursorMarker`, `hideCursorMarker` | `showCursorMarker`, `hideCursorMarker` |
| `map.profile.emphasis` | `writeLegEmphasis` | `writeLegEmphasis` |

- `map.profile.cursor-marker`: An element's cursor is one map marker under its own id, drawn as the filled pin at the sample pointed at, moved by editing its position, rebuilt when its colour or glyph changes, added again where something else removed it and taken down when there is no point, and an element never removes a marker it did not add.
- `map.profile.emphasis`: The leg pointed at is lit on the map as the stretch of the series between its two ends, written to the map's emphasis slot and cleared only by the element that wrote it.

### Organization content

| Capability | Dart | TypeScript |
| --- | --- | --- |
| `map.organization.read` | `MapEngine.loadOrganization`, `MapEngine.organization` | `MountayaMap.loadOrganization`, `MountayaMap.getOrganization` |

- `map.organization.read`: A map reads its organization through `postOrganizationLookup` once per publishable key and Map Studio API origin, the key in the body and no credential sent, and shares the read with every map whose client holds that key and sends to that origin, a read that fails or reaches the transport's budget being kept by nobody, a client holding no publishable key reading nothing, and a closed map answering what it held.
