# Overview

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

Dart and Flutter packages to fetch Mountaya data, show it on a map in a Flutter app, and navigate a route, on Android, iOS and the Dart VM.

Fetch Mountaya data, draw it on a Flutter map, and follow a route, on Android, iOS and Dart servers.

## Pick your path

- [Fetch data](https://docs.mountaya.com/en/sdks/dart/quickstart-server.md): Call the Map Studio, Data and Tile APIs from a Dart server or script.
- [Show a map](https://docs.mountaya.com/en/sdks/dart/quickstart.md): A Flutter map with your itinerary on it, on Android and iOS.
- [Navigate a route](https://docs.mountaya.com/en/sdks/dart/navigation.md): Turn-by-turn guidance along an itinerary, spoken in your words.

## Pick your packages

The SDK is five pub packages, released together at one version. Add only the ones you use.

| You are building | Add |
| --- | --- |
| A server, a script or an app that reads data | `mountaya_client` |
| A server that mints session tokens, runs an organization or receives webhooks | `mountaya_client` and `mountaya_admin` |
| Distances, units, elevation profiles or search rules, with no map | `mountaya_geo` |
| Turn-by-turn navigation in a Flutter app | `mountaya_navigation_flutter` |
| A map, its controls, search, an elevation profile or route tables in Flutter | `mountaya_elements_flutter` |

Each line also needs `mountaya_client`, and the Flutter lines `mountaya_geo`. [Install and set up](https://docs.mountaya.com/en/sdks/dart/install.md) has the commands.

- The five packages, on pub.dev, one release train: each names its siblings at exactly the same version.

  - `mountaya_client`: pure Dart, the only package that calls the network. One type, `Mountaya`, with the namespaces `studio`, `agent` (Map Studio API), `data` (Data API, GraphQL) and `tiles` (Tile API). Every transport rule: credentials and session tokens, retries, idempotency keys, conditional writes, the error ladder, pagination, event streams, field selection. Runs in a Flutter app on Android and iOS and on the Dart VM.
  - `mountaya_admin`: pure Dart, the client's admin unit. `import 'package:mountaya_admin/mountaya_admin.dart'` hangs `mountaya.admin.<resource>.<operationId>` on the client (organizations, members, invitations, keys, billing, users, sessions, webhooks), adds the `admin_schema.dart` types and `constructWebhookEvent`. For servers; an app never adds it, and no other package depends on it.
  - `mountaya_geo`: pure Dart, Mountaya's rules with no network and no renderer: units and formatting, geodesy, the camera, the elevation profile, road access, layers and icons, the elements' words, colours and glyphs, search and `SearchEngine`, and navigation: the `NavigationEngine` interface and its rules, `RouteFollowingEngine` (the machine every engine follows a route on) and `ScriptedNavigationEngine`. It depends on `mountaya_client` for its types and calls nothing.
  - `mountaya_navigation_flutter`: a Flutter plugin for Android and iOS: `DeviceNavigationEngine`, `DeviceLocationSource`, `ReplayLocationSource`, `SpeechNavigationVoice`. It depends on no MapLibre.
  - `mountaya_elements_flutter`: a Flutter plugin for Android and iOS over `maplibre_gl`: `MapEngine`, `MapView`, the controls and panels, `SearchControl`, `ItineraryProfile`, the two itinerary tables, `ItinerarySparkline`, `WaypointCard`, `Glyph`, and `ScriptedMapSurface` for tests.
- Platform availability per package: the three pure packages build for Flutter on Android and iOS and run on the Dart VM. `SecretCredential` and `constructWebhookEvent` exist on the Dart VM only: conditional exports leave both out of every Flutter build, so an app has no symbol for either. The two plugins build for Android and iOS only. No web build and no desktop build is published: a Flutter web or desktop app gets nothing from this SDK, and a web page uses the [TypeScript SDK](https://docs.mountaya.com/en/sdks/typescript.md).
- No studio package exists in Dart: the Embedded Studio is TypeScript only.
- An app declares only Mountaya's packages: never `maplibre_gl`, Pigeon, or a location or speech plugin. The exception is an app that reaches MapLibre's controller through `MapView(onReady:)`, which declares `maplibre_gl` within the range `mountaya_elements_flutter` names.
- The sample app Trail (a Flutter app over the four app packages, never the admin unit) and its session server, `examples/trail_session`, live under `examples/` in the SDK repository (https://github.com/mountaya/sdk-dart), MIT licensed.
- Every request names the SDK that made it: `X-Mountaya-Client: mountaya-dart/<version>`, the packages' version.
- The packages are printed from contract `v0.9.0`, which `schemaVersion` holds (`modelDigest` names the exact files).
- Naming departures from the contract's spelling: callbacks speak Flutter's past tense (`onCameraChanged`, `onSelected`, `onPreferencesChanged`, `onToggled`); types the other SDKs nest are top-level (`MapEventTap`, `MapEventFeatureTap`, `OrganizationMemberUpdatedEvent`, `UnknownWebhookEvent`); error classes end in `Exception` (`ApiException`, `NotFoundException`, `WebhookSignatureException`); wire names stay verbatim (`itinerary_id`, `expires_at`).

## Requirements

| Package | Dart | Flutter | iOS | Android |
| --- | --- | --- | --- | --- |
| `mountaya_client`, `mountaya_admin`, `mountaya_geo` | 3.10 | none | none | none |
| `mountaya_navigation_flutter` | 3.12 | 3.44 | 14.0 | API level 24 |
| `mountaya_elements_flutter` | 3.12 | 3.44 | 15.5 | API level 24 |

The SDK is published under the Mountaya SDK License: you may ship it inside your product while you use Mountaya's services.

- The floors are each package's `pubspec.yaml` `environment` (`sdk: ^3.10.0` for the pure packages, `sdk: ^3.12.0` and `flutter: ">=3.44.0"` for the plugins), each plugin's iOS Swift package and pod (`.iOS("14.0")` for navigation, `.iOS("15.5")` for elements) and its Android `minSdk = 24`.
- `none` means the package states no floor of its own: a pure package takes no Flutter and names no platform, so it builds wherever the app's Flutter does once that Flutter's Dart is 3.10 or newer. 3.10 is the release whose dot shorthands (`.publishable(...)`, `.value(...)`) the samples write a credential with.
- `mountaya_elements_flutter` takes `maplibre_gl`'s floors (`^0.28.0`) as its own; `mountaya_navigation_flutter` asks only what its own platform calls need, so a navigation app with no map is not held to MapLibre's iOS 15.5.
- On iOS each plugin builds as a Swift package, Flutter's default, and as a CocoaPods pod for an app that turned Swift Package Manager off.
- Licence: the Mountaya SDK License, version 1.0, with a French translation (the English text prevails). Source-available, not open source: you may read the code and ship it inside your own application, in conjunction with the Mountaya services and for as long as an agreement with Mountaya is in force. pub.dev withholds its licence points, since the licence is not OSI-approved. `maplibre_gl` and MapLibre Native are under their own BSD licences. The glyph sets carry Lucide icons (ISC) and Feather icons (MIT), listed in `THIRD-PARTY-NOTICES.txt`. The examples are MIT licensed.
- Products: the Data API is self-serve. The Map Studio API and the Tile API come with an agreement. See [account and keys](https://docs.mountaya.com/en/account.md).

## Next steps

- [Install and set up](https://docs.mountaya.com/en/sdks/dart/install.md): The packages, the platform floors and your key.
- [Quickstart](https://docs.mountaya.com/en/sdks/dart/quickstart.md): A map with an itinerary in a Flutter app.
