# Overview

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

Kotlin Multiplatform modules to fetch Mountaya data, show it on a Compose map, and navigate a route, on Android, the JVM and iOS.

Fetch Mountaya data, draw it on a Compose map, and follow a route, from Kotlin Multiplatform modules.

## Pick your path

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

## Pick your packages

The SDK is five modules on Maven Central, released together at one version. Add only the ones you use.

| You are building | Add |
| --- | --- |
| An Android app, shared Kotlin code or a server that reads data | `mountaya-client` |
| A JVM 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 on Android | `mountaya-navigation` |
| A map, its controls, search, an elevation profile or route tables in Compose | `mountaya-elements` |

[Install and set up](https://docs.mountaya.com/en/sdks/kotlin/install.md) has the Gradle lines.

- Coordinates: `com.mountaya:mountaya-client:0.1.0`, `com.mountaya:mountaya-admin:0.1.0`, `com.mountaya:mountaya-geo:0.1.0`, `com.mountaya:mountaya-navigation:0.1.0`, `com.mountaya:mountaya-elements:0.1.0`, all on Maven Central (`mavenCentral()`). One version for all five; each module names its siblings at exactly that version.
- Targets per module: `mountaya-client`, `mountaya-admin`, `mountaya-geo` and `mountaya-elements` are Kotlin Multiplatform with `jvm`, Android, `iosArm64` and `iosSimulatorArm64`; a Kotlin Multiplatform build lists them in `commonMain` and Gradle resolves each target's variant. `mountaya-navigation` is Android only.
- `mountaya-client`: the only module that calls the network. One type, `Mountaya`, with `studio` and `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. Its HTTP stack is Ktor over OkHttp on the jvm and Android and over URLSession on iOS.
- `mountaya-admin`: the client's admin unit. `import com.mountaya.admin.admin` adds `mountaya.admin.<resource>.<operationId>` (organizations, members, invitations, keys, billing, users, webhooks, and `sessions.postSession`) and `AdminSchema`. `constructWebhookEvent` is declared on the jvm alone. An app never declares this module.
- `mountaya-geo`: Mountaya's rules with no network and no renderer: units and formatting, geodesy, the camera, the elevation profile, road access, layers and icons, search (`SearchEngine`), and navigation: both `RouteFollowingEngine`, the engine that follows a route on every target, and the `NavigationEngine` rules it stands on (`NavigationEngine`, `readItineraryRoute`, `guidancePlanOf`, `duePrompt`, `ScriptedNavigationEngine`). It depends on `mountaya-client` with `api` for its types and calls nothing.
- `mountaya-navigation`: `DeviceNavigationEngine`, `DeviceLocationSource`, `FlowLocationSource`, `ReplayLocationSource`, `InertLocationSource`, `SpeechNavigationVoice` and `InertNavigationVoice`. It links no navigation library.
- `mountaya-elements`: `MapEngine` and `ScriptedMapSurface` on every target; on Android only, the Compose renderer over MapLibre Native Android (`[13.7.1,14.0)`): `MapView`, `MapControls` and each control, `LayersPanel`, `PoiPanel`, `PreferencesPanel`, `SearchControl`, `ItineraryProfile`, `ItinerarySegmentTable`, `ItineraryWaypointTable`, `ItinerarySparkline`, `WaypointCard`, `Glyph`. On iOS and the jvm there is no renderer: `MapEngine` holds the map's state for your own views.
- Each module's public API is one package named after it: `com.mountaya.client`, `com.mountaya.admin`, `com.mountaya.geo`, `com.mountaya.elements`, `com.mountaya.navigation`. Types printed from the contract sit in `com.mountaya.client.generated`, `com.mountaya.admin.generated` and `com.mountaya.geo.generated`.
- Every request names the SDK: `X-Mountaya-Client: mountaya-kotlin/0.1.0`. The client is written against contract `v0.9.0`, which `SCHEMA_VERSION` (in `com.mountaya.client.generated`) holds.
- Naming departures from the other SDKs: Kotlin says Click where Swift and Dart say Tap (`onClick`, `MapEvent.Click`, `MapEvent.LongClick`), and every error class ends in `…Exception` (`ApiException`, `NotFoundException`) where TypeScript's end in `…Error`.
- No studio module exists in Kotlin: the Embedded Studio is TypeScript only.
- The sample app Trail (an Android app in Compose, built through R8, with a JVM session server over `mountaya-admin`) lives under `examples/trail` in the SDK repository, MIT licensed. The SDK's source is at https://github.com/mountaya/sdk-kotlin.

## Requirements

| Floor | Version |
| --- | --- |
| The Kotlin a consumer compiles with | Kotlin 2.4 or newer |
| The Java its jvm and Android code targets | Java 17 or newer |
| The API level an Android app runs from | `minSdk 24` or higher |
| The API level an Android app compiles against | `compileSdk 37` or higher |

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 the SDK's version catalog: `kotlin-floor` 2.4 (the first release with `kotlin.time.Instant` and `kotlin.uuid.Uuid` both stable), `jvm-target` 17, `android-minSdk` 24 (the first API level with `android.icu`, which `mountaya-geo` formats dates and times through), `android-compileSdk` 37 (OkHttp's Android artifact asks every app that carries it to compile against it).
- An Android app that shows the map applies the Compose compiler plugin (`org.jetbrains.kotlin.plugin.compose`). `mountaya-elements` brings MapLibre and Compose's UI with it; the app declares neither. It does not hand on Compose's foundation: an app that lays out its own screen around the map declares `androidx.compose.foundation:foundation` (or Material, which brings it).
- No module asks an app for core library desugaring.
- Licence: the Mountaya SDK License, version 1.0 (the English text prevails over the French translation), https://www.mountaya.com/en/legal/sdk-license/. 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. MapLibre Native is under its own BSD licence. The glyph sets in `mountaya-geo` carry Lucide icons (ISC) and Feather icons (MIT), in `META-INF/mountaya-geo/THIRD-PARTY-NOTICES.txt` of every jar and AAR. The examples under `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/kotlin/install.md): The Gradle lines, Compose and your key.
- [Quickstart](https://docs.mountaya.com/en/sdks/kotlin/quickstart.md): A map with an itinerary in a Compose app.
