Skip to main content
|

Integrate powerful location-based features with a flexible and lightweight REST architecture.

Discover RESTful web services designed for modern mapping and navigation applications - from precise routing and turn-by-turn navigation to advanced isochrone analysis and multi-transport mode support.

Whether you're building fleet management solutions with truck routing, developing pedestrian navigation apps, or creating advanced location-based services with EV charge-aware routing, Magic Lane REST APIs provide everything you need to put location intelligence at the heart of your application: comprehensive routing with vehicle specifications, multi-modal transport options, isochrone calculations for reach analysis, and more.

Additional advanced features include customizable route types (fastest, shortest, economic, scenic), detailed vehicle profiles for different transport modes (car, truck, bike, pedestrian, public transport), EV-specific routing with charging station integration, terrain and elevation data, route avoidance options, and real-time traffic considerations.

API Services

Magic Lane Cloud REST APIs are divided into several distinct services:

  • Maps & 3D Scene - Rendering and visualization services
  • Locations & Search - Geocoding and points of interest
  • Routes & Navigation - Routing and reachability analysis
  • Fleet Management - Solve vehicle routing problems efficiently
  • Geofences & Asset Monitoring - Geofence management available now; asset tracking, monitoring, and trips coming soon

Each service contains specific APIs designed to work together seamlessly while maintaining independence for flexible integration.

Reading this Documentation

Each API endpoint is described with:

  • HTTP methodPOST, GET, PUT, and DELETE depending on the endpoint
  • Base URLhttps://api.magiclane.net/api/v1 (prepended to the endpoint path)
  • Endpoint path — e.g. /routing, /isochrones, /search
  • Request body — JSON format (Content-Type: application/json header required)
  • Authentication — Valid API token in the Authorization header
  • Code examples — Complete request samples with parameters

The Magic Lane Cloud REST APIs described in this documentation are subject to Magic Lane's Terms of Service.

API Authentication

To access Magic Lane API endpoints, you need a valid API key, which will authenticate API requests to your account. You must supply a valid API key using the Authorization header in every request.

Getting an API Key

To obtain your API key:

  1. Visit the Magic Lane Developer Portal
  2. Follow the step-by-step guide to create your account and generate an API key

Using Your API Key

Include your API key in the Authorization header of each request:

curl -X POST https://api.magiclane.net/api/v1/routing \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"transport": "car",
"type": "fastest",
"waypoints": [[13.388860, 52.517037], [13.397634, 52.529407]]
}'

Important: Keep your API key secure. Do not share it publicly or commit it to public repositories.