Skip to main content
POST
Evaluate Fleet Placement (Alpha)
This API is experimental and currently in alpha. The request and response contract may change before general availability.
Try it without writing code in the Fleet Placement playground in the developer console. Draw your area, place your bases, and see who you reach in time.
The Fleet Placement playground with six bases in central Riyadh, hexagons colored by travel time to the nearest base, and the reached weight

Six bases in central Riyadh reach 58.2% of 1.52 million people within 10 minutes at 08:00.

Use Fleet Placement to see who your bases reach within a travel time limit, and where you miss. A base is where your vehicles leave from, such as an ambulance station, a delivery hub, or a service depot. Each base drives as a car or a motorcycle. Send the area you serve as a GeoJSON polygon, the travel time limit, and when your vehicles leave. Travel times follow the road network with the traffic expected for that day and time. Add demand to measure what matters to you. Demand is a list of places, each with a weight, such as people, emergency calls, or orders. The response covers the area in H3 resolution 8 cells, about 0.74 km² each. Every cell and every demand point comes back with its fastest base, its travel time, and how many bases reach it in time. The summary adds up the demand weight reached. Each request can include up to 50 bases and 20,000 demand points, and an area of up to 20,000 cells. The travel time limit is between 1 and 120 minutes. Usage is the number of bases times the number of demand points in each request. A request with 6 bases and 336 demand points counts as 2,016. Without demand, usage is the number of bases.

Authorizations

Authorization
string
header
required

JWT Bearer token for authentication. Example: "Bearer YOUR_API_TOKEN_HERE"

Body

application/json

Bases, departure time, travel time limit, area and demand

Bases, departure time, travel time limit, area and demand

model
object
required

Response

OK

code
string

Error code, present on 429 responses to tell the limits apart

Example:

""

data
object

Response payload

error
string

Error message (only present when ok is false)

Example:

""

ok
boolean

Whether the request was successful

Example:

true