Route API Overview

The Route API provides fast, accurate turn-by-turn directions between multiple waypoints. Built for high-performance applications, it delivers sub-50ms response times with detailed geometry data for map visualization.

Key Features

🚗 Turn-by-Turn Directions

Generate detailed navigation instructions with:
  • Precise geometry in GeoJSON format for map rendering
  • Step-by-step instructions with maneuver details
  • Distance and duration calculations for each route segment
  • Multi-waypoint support for complex routing scenarios

⚡ Batch Processing

Process multiple route requests efficiently:
  • Single API call for multiple route calculations
  • Reduced network overhead and improved performance
  • Concurrent processing with optimized resource usage

🌍 Multi-Engine Support

Choose from multiple routing map data:
  • OpenStreetMap
  • TomTom - Commercial with real-time traffic (contact sales@solvice.io)

Available Endpoints

Quick Start

Basic Route Request

{
  "coordinates": [
    [4.3517, 50.8503],  // Brussels
    [2.3522, 48.8566]   // Paris
  ]
}

Response Structure

{
  "routes": [{
    "distance": 264100,    // meters
    "duration": 8790,      // seconds
    "legs": [...],         // detailed route segments
    "weight": 8790
  }]
}