API Documentation
Base URL: https://api.mapriot.com
All API requests require an API key. Get yours from the dashboard.
Authentication
Append ?apiKey=<your-key> to every request:
https://api.mapriot.com/planet/14/8873/5504?apiKey=<your-key>When using the outdoor style with a map library, the style JSON triggers additional requests for tiles, fonts, and sprites — all of which also need your API key. Each platform handles this differently:
- MapLibre GL JS — use
transformRequest(example) - Leaflet — use
transformRequestvia maplibre-gl-leaflet, or include the key directly in the raster tile URL (example) - Android — use an OkHttp interceptor (example)
- iOS — use a URLProtocol interceptor (example)
- OpenLayers — include the key directly in the raster tile URL (example)
Billing units
Each API request consumes units against your monthly plan limit. Limits are soft on paid plans — requests are never blocked. You receive an email notification when approaching or exceeding your limit.
| Request type | Units |
|---|---|
| Vector or raster source tile | 1 |
| Composite raster tile | 5 |
| Elevation query (single or batch) | 1 |
| Static map image | 10 |
| Fonts, sprites, style JSON, TileJSON | 0 |
Endpoints
Styles
| URL | Description |
|---|---|
GET /styles/outdoor.json?apiKey=<key> | Outdoor style |
Tile sources
| Source | Type | |
|---|---|---|
planet | Vector — worldwide OSM | → |
contours | Vector — elevation contour lines | → |
hillshading | Raster-DEM — digital elevation model | → |
relief | Raster — shaded relief overlay | → |
APIs
| URL | Description | |
|---|---|---|
/styles/{style}/raster/{z}/{x}/{y}?apiKey=<key> | Composite raster tiles | → |
/elevation/{lat}/{lng}?apiKey=<key> | Elevation at a point | → |
POST /elevation?apiKey=<key> | Elevation for multiple points | → |
/static/center/{lat},{lng},{zoom}/…?apiKey=<key> | Static map image | → |
/static/bounds/{bbox}/…?apiKey=<key> | Static image from bounding box | → |
/static/path/{size}?points=…&apiKey=<key> | Static image auto-fit to path | → |