Pricing Docs About
Get Started
Ready to start creating map animations? Get Started Free →

Route Animation Mode

The default render mode. Animates a route between waypoints with a moving vehicle icon, smart routing algorithms, and optional HUD elements.

Basic Example

{
  "mode": "route_animation",
  "waypoints": [
    { "lat": 29.9792, "lng": 32.5731, "label": "Suez Canal" },
    { "lat": 1.2644, "lng": 103.8176, "label": "Singapore" }
  ],
  "transport": "ship",
  "style": "maritime-dark",
  "duration": 12
}

Waypoint Properties

PropertyTypeRequiredDescription
latnumberrequiredLatitude (-90 to 90)
lngnumberrequiredLongitude (-180 to 180)
labelstringoptionalText label shown on map
dwellnumberoptionalSeconds to pause at this waypoint
emphasisenumoptionalstandard, waypoint, chokepoint
camera_zoom_overridenumberoptionalOverride zoom level at this point
camera_hold_secondsnumberoptionalHold camera at this point

Transport Types

The transport parameter is a simplified way to configure vehicle icon, route calculation, and speed:

TransportVehicle IconRoute ModeDefault Speed
shipShip iconsea (maritime routing)35 km/h
truckTruck iconroad (road routing)80 km/h
planePlane iconmanual (great circle)900 km/h

Example: Truck Route

{
  "waypoints": [
    { "lat": 24.0854, "lng": 38.0447, "label": "Yanbu" },
    { "lat": 25.9381, "lng": 49.6631, "label": "Abqaiq" }
  ],
  "transport": "truck",
  "hud": {
    "stats": { "position": "top-right" }
  }
}

Route Calculation

For more control over routing, use the route parameter instead of transport:

{
  "route": {
    "mode": "sea",
    "avoid": ["suez", "panama"]
  }
}
ModeDescriptionUse Case
manualStraight lines (great circle)Planes, custom paths
seaMaritime routing (follows shipping lanes)Ships, avoiding land
roadRoad routing (follows actual roads)Trucks, cars

Maritime Route Options

Avoid specific chokepoints for alternative route visualization:

{
  "route": {
    "mode": "sea",
    "avoid": ["suez", "panama", "malacca", "gibraltar"]
  }
}

Route Style

Customize the appearance of the route line and vehicle:

{
  "route_style": {
    "color": "#E63946",
    "width": 3,
    "animated": true,
    "dash": false,
    "vehicle_icon": "ship",
    "vehicle_size": 32,
    "vehicle_color": "#FFFFFF",
    "vehicle_outline_color": "#000000",
    "vehicle_outline_width": 2,
    "follow_waterway": true,
    "contrast_mode": "auto"
  }
}
PropertyTypeDefaultDescription
colorstringStyle-dependentRoute line color (hex)
widthnumber3Route line width in pixels
animatedbooleantrueAnimate route drawing
dashbooleanfalseUse dashed line
vehicle_iconenum/boolfalseship, truck, plane, or true/false
vehicle_sizenumber32Vehicle icon size in pixels
follow_waterwaybooleanfalseSmooth route to follow water (for canals)

Complete Example

{
  "mode": "route_animation",
  "waypoints": [
    { "lat": 29.9792, "lng": 32.5731, "label": "Port Said", "emphasis": "chokepoint" },
    { "lat": 12.3567, "lng": 43.6028, "label": "Bab el-Mandeb", "dwell": 1 },
    { "lat": 1.2644, "lng": 103.8176, "label": "Singapore" }
  ],
  "transport": "ship",
  "style": "maritime-dark",
  "duration": 15,
  "resolution": "4k",
  "route_style": {
    "color": "#00D4FF",
    "width": 4,
    "vehicle_size": 40
  },
  "hud": {
    "stats": { "show_distance": true, "show_time": true },
    "progress_bar": true
  },
  "camera": {
    "preset": "global_corridor_reveal",
    "intensity": "bold"
  }
}