Documentation

Valkyrie Route provides a high-performance, daily-updated Valhalla routing engine optimized for the United States.

Our data is sourced from OpenStreetMap and processed every 24 hours to ensure you have the freshest routing graph available. Whether you are managing a fleet of trucks or building a consumer navigation app, our API delivers sub-millisecond latency and enterprise-grade reliability.

Valhalla Documentation

Valkyrie is built on top of the open-source Valhalla routing engine. For advanced usage, detailed parameter lists, and complex routing scenarios not covered here, please refer to the official Valhalla API Reference.

Authentication

All API requests require a valid API key. You can obtain an API key by signing up for an account and generating one in your dashboard.

Include the API key in the X-Secret header of your requests:

X-Secret: YOUR_API_KEY

Route API

Get turn-by-turn directions between two or more locations.

Endpoint
POSThttps://valkyrieroute.com/api/v1/route
Request Body

The request accepts a JSON object with the following parameters:

ParameterTypeDescription
locationsArrayList of locations (lat, lon) to visit in order.
costingStringThe routing profile to use (e.g., auto, truck).
directions_optionsObjectOptional configuration for guidance instructions. See Valhalla docs.
idStringName your route request. If id is specified, the naming will be sent through to the response.
unitsStringDistance units. Options: miles, kilometers (default).
Example Request
curl https://valkyrieroute.com/api/v1/route \
  -d '{
    "locations":[
      {"lat":40.712,"lon":-74.006},
      {"lat":39.952,"lon":-75.165}
    ],
    "costing":"truck"
  }' \
  -H "X-Secret: YOUR_API_KEY"

Costing Models

Valkyrie supports standard Valhalla costing models optimized for different transport modes.

auto

Standard car routing. Optimizes for fastest time considering speed limits and road hierarchy.

truck

Routing for heavy vehicles. Acknowledges truck restrictions, weight limits, and suitable roads.

bicycle

Prefers bike lanes, lower speed roads, and avoids highways.

pedestrian

Walking directions. Uses sidewalks, footpaths, and allows routing against traffic flow.

bus

Routing for buses. Favors roads where buses are permitted and avoids restricted maneuvers.

motorcycle

Routing for motorcycles. Similar to auto but considers motorcycle-specific access rules.

motor_scooter

Routing for motor scooters. Avoids high-speed roads and highways suitable only for lower speed vehicles.

taxi

Optimized for taxi services. Similar to auto routing but may allow usage of restricted taxi lanes.