Skip to content

Flio.ai API Documentation

Welcome to Flio.ai! Our powerful APIs provide comprehensive routing and optimization solutions for all your transportation needs - from simple point-to-point navigation to complex fleet optimization problems.

🚀 Quick Start

Flio.ai offers two complementary APIs designed to solve different routing challenges:

Route API - Point-to-Point Navigation

Calculate optimal routes between specific locations with support for waypoints, alternative routes, vehicle specifications, and toll calculations.

Optimize API - Fleet Optimization

Solve complex vehicle routing problems including job assignment, multi-vehicle routing, capacity constraints, and time window optimization.

📋 API Overview

Route API Features

  • Multi-Stop Routing: Add waypoints for complex delivery routes
  • Alternative Routes: Get multiple route options for comparison
  • Vehicle Specifications: Truck routing with dimensions and hazardous goods
  • Route Optimization: Minimize distance or duration
  • Feature Avoidance: Avoid tunnels, ferries, toll roads, and more
  • Toll Calculations: Accurate toll costs in multiple currencies

Optimize API Features

  • Multiple Problem Types: TSP, VRP, CVRP, VRPTW, PDP, MDHVRPTW
  • Flexible Optimization: Distance, duration, or cost-based objectives
  • Powerful Constraints: Time windows, capacity limits, heterogeneous fleet
  • Fast Solutions: Heuristic and mathematical solver options
  • Generated Models: Custom optimization models via Flio.ai GPT

🛠️ API Usage

Route API

Calculate routes between locations:

curl -X POST "https://api.flio.ai/solver/route?api_key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "tasks": [
      {
        "mode": "car",
        "origin": [41.0082, 28.9784],
        "destination": [41.0150, 28.9850],
        "minimize": "duration"
      }
    ]
  }'

Optimize API

Solve vehicle routing problems:

curl -X POST "https://api.flio.ai/solver/optimize?api_key=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "vehicles": [...],
    "jobs": [...],
    "options": {...}
  }'

📚 Documentation Structure

Learn

API Reference

Examples

🎯 Which API Should I Use?

Use Route API when you need to:

  • Calculate routes between specific locations
  • Get turn-by-turn directions
  • Compare alternative route options
  • Calculate toll costs and travel times
  • Plan routes with specific waypoints
  • Consider vehicle dimensions for truck routing

Use Optimize API when you need to:

  • Assign jobs to multiple vehicles optimally
  • Solve complex fleet routing problems
  • Handle capacity and time window constraints
  • Optimize for distance, duration, or cost
  • Manage multi-depot operations
  • Use custom generated models for specialized scenarios

🚀 Ready to Get Started?

Choose your path:


Simplify routing and optimization with Flio.ai - from simple navigation to complex fleet management!