moovexDocs

API Reference

Complete EVRP API documentation

Overview

The EVRP API provides EV-optimized route planning with intelligent charging stop recommendations.

Base URLs

EnvironmentURL
Productionhttps://routing.moovex.ai/api/v1
Staginghttps://routing.staging.moovex.ai/api/v1

Authentication

All requests require a Bearer token:

Authorization: Bearer YOUR_API_KEY

Endpoints

ResourceDescription
Generate RouteCalculate EV-optimized route synchronously
Generate Route AsyncCalculate route asynchronously
Get Route ResultRetrieve async route result

Data Types

Location

interface Location {
  lat: number;
  lng: number;
  name?: string;
  address?: string;
}

Vehicle

interface Vehicle {
  model?: string;
  custom_profile?: {
    battery_capacity_kwh: number;
    consumption_wh_per_km: { city: number; highway: number; combined: number };
    max_charge_rate_kw: number;
  };
  current_soc_percent: number;
}

Preferences

interface Preferences {
  charging_strategy?: 'minimum' | 'balanced' | 'comfortable';
  min_arrival_soc_percent?: number;
  optimize_for?: 'time' | 'cost' | 'comfort';
}

Error Codes

CodeStatusDescription
invalid_location400Invalid origin or destination
unreachable400No route possible
invalid_vehicle400Invalid vehicle config
auth_failed401Invalid API key
rate_limited429Too many requests

On this page