API reference
API reference
Every endpoint, parameter and response field of the Wayline v1 API. Generated from our OpenAPI 3.1 specification, the source of truth for the API and SDKs.
Authentication
Send Authorization: Bearer <key> on every call. Auth guide
Format & Spec
JSON over HTTPS with lat,lng points. OpenAPI & Postman
https://api.wayline.cloudRouting
GET
/v1/distancePoint-to-point road distance and travel timePOST/v1/distancePoint-to-point road distance and travel time (JSON body)GET/v1/routeDriving directions and full route geometryPOST/v1/routeDriving directions and full route geometry (JSON body)POST/v1/distance/batchConsecutive distance calculation across an ordered sequence of pointsPOST/v1/matrixMany-to-many travel time and road distance matrixSnapping
Geocoding
Field operations
Maps
GET
/v1/staticmapStatic map image with a route and numbered stopsPOST/v1/staticmapStatic map image (JSON body, for long paths)GET/v1/tiles/{z}/{x}/{y}Raster XYZ map tile (256 px, or 512 px with @2x)GET/v1/maps/styles/{style}Vector map style (MapLibre) with your key in its tile and font URLsGET/v1/tiles/vector/{z}/{x}/{y}Vector map tile (Mapbox Vector Tile, OpenMapTiles schema)GET/v1/maps/fonts/{fontstack}/{range}Font glyphs for map labels (referenced by the style; not billed)