Concepts
Units & pricing
How Wayline counts billable units per endpoint, which responses are billed, how free units are consumed and how monthly billing through Paddle works.
Wayline bills in units. Each endpoint has a unit price in USD, shown on the pricing page both per request and per 1,000.
Units per endpoint
| Endpoint | Units charged |
|---|---|
GET/POST /v1/distance | 1 per request |
GET/POST /v1/route | 1 per request (any number of waypoints) |
POST /v1/distance/batch | 1 per consecutive pair (points − 1) |
POST /v1/matrix | origins × destinations |
GET /v1/nearest | 1 per request |
GET /maps/api/distancematrix/json | origins × destinations |
GET /v1/geocode, GET /v1/reverse-geocode | 1 per request |
POST /v1/reverse-geocode/batch | 1 per point inside coverage |
POST /v1/optimize | 1 per stop |
GET/POST /v1/staticmap | 1 per image (static_map), cached or fresh |
GET /v1/tiles/{z}/{x}/{y}.png | 1 per tile (map_tile) |
Every response includes the X-Units-Charged header and a units_charged field.
What is billed
- Only HTTP 2xx responses. 4xx and 5xx errors are never billed.
- Cache hits are billed like fresh results (you still get a correct answer).
- Matrix cells with
NO_ROUTEare part of the requested matrix and count toward its size. - Test keys are never billed.
Current prices
| Endpoint | Billed unit | Per unit | Per 1,000 |
|---|---|---|---|
Distance Road distance and drive time between two points.distance | request | $0.0008 | $0.80 |
Route Turn-by-turn route geometry between waypoints.route | request | $0.001 | $1.00 |
Batch distance Distances for consecutive point pairs.distance_batch | pair | $0.0008 | $0.80 |
Distance matrix Origins x destinations distances and times.matrix | element | $0.0004 | $0.40 |
Snap to road Nearest point on the road network.nearest | request | $0.0005 | $0.50 |
Distance Matrix (Google-compatible) Drop-in Google Distance Matrix API response format.gmaps_compat_matrix | element | $0.0004 | $0.40 |
Visit-order optimization Best order to visit a day's stops, with road distance and time.optimize | stop | $0.0015 | $1.50 |
Geocoding Search places and addresses by text.geocode | request | $0.0006 | $0.60 |
Reverse geocoding Address and place name for a coordinate.reverse_geocode | request | $0.0006 | $0.60 |
Static map images PNG or WebP map with your route and numbered stops, up to 1280x1280 @2x.static_map | image | $0.0005 | $0.50 |
Map tiles Raster XYZ map tiles for interactive maps in apps and browsers.map_tile | tile | $0.0001 | $0.10 |
Free units
New accounts receive free units. Free units are consumed before paid usage, across all endpoints, earliest-expiring first.
Billing cycle
Usage is billed monthly in arrears for each calendar month in UTC, through Paddle (merchant of record), which also calculates sales tax/VAT and issues invoices. Account states:
| State | Meaning |
|---|---|
free_only | Using free units, no payment method yet. |
billable | Payment method on file; usage beyond free units is billed. |
past_due | A payment failed; requests still work during a grace period. |
suspended | Unpaid balance; requests return 402 PAYMENT_REQUIRED. |
You can set a monthly spend limit. When it is reached, requests return 402 SPEND_LIMIT_REACHED.