Documentation
Maptoolkit provides a set of map APIs for adding geographic features to your applications. You can display interactive maps, calculate routes, geocode addresses, generate static map images, and more — all built on OpenStreetMap data.
Authentication
All API requests require an API key. Pass it as a URL parameter or an HTTP header:
?api_key=YOUR_API_KEYor via the HTTP header MTK-ApiKey.
Contact maptoolkit.com to get your API key.
Available APIs
| API | What it does |
|---|---|
| Vector Tiles | Interactive vector maps for MapLibre GL and Mapbox GL |
| Raster Tiles | Raster map tiles for Leaflet and OpenLayers |
| Static Maps | Generate map images as JPEG, PNG, or WebP |
| Elevation | Get elevation data for coordinates or a route profile |
| Routing | Calculate routes for car, bike, foot, or transit |
| Isochrone | Calculate reachable areas within a given travel time |
| Map Matching | Match a GPS track to the road network and get turn-by-turn directions |
| Weather | Add weather forecasts and overlays to your maps |
| Data Connectors | Connect your own data sources and serve them as vector tiles |
JavaScript Library
If you are building a web app, you can use the Maptoolkit JavaScript library, which wraps the APIs and provides ready-to-use UI components:
<link rel="stylesheet" href="https://static.maptoolkit.net/mtk/apis/v1.0/mtk.css" />
<script src="https://static.maptoolkit.net/mtk/apis/v1.0/mtk.js"></script>You can also load only the parts you need:
<!-- Geocoding only -->
<script src="https://static.maptoolkit.net/mtk/apis/v1.0/geocoder.js"></script>
<!-- Routing only -->
<script src="https://static.maptoolkit.net/mtk/apis/v1.0/routing.js"></script>
<!-- Elevation only -->
<script src="https://static.maptoolkit.net/mtk/apis/v1.0/elevation.js"></script>