Evaluate Fleet Placement (Alpha)
curl --request POST \
--url https://b.hudhud.sa/v1/routing/fleet_placement/evaluate \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"model": {
"area": {},
"bases": [
{
"id": "station-1",
"location": {
"lat": 24.7136,
"lon": 46.6753
},
"routing_profile": "car"
}
],
"departure_time": "2026-11-01T14:30:00Z",
"max_travel_duration_seconds": 900,
"demand": {
"points": [
{
"location": {
"lat": 24.7136,
"lon": 46.6753
},
"weight": 1
}
]
}
}
}
'import requests
url = "https://b.hudhud.sa/v1/routing/fleet_placement/evaluate"
payload = { "model": {
"area": {},
"bases": [
{
"id": "station-1",
"location": {
"lat": 24.7136,
"lon": 46.6753
},
"routing_profile": "car"
}
],
"departure_time": "2026-11-01T14:30:00Z",
"max_travel_duration_seconds": 900,
"demand": { "points": [
{
"location": {
"lat": 24.7136,
"lon": 46.6753
},
"weight": 1
}
] }
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: {
area: {},
bases: [
{
id: 'station-1',
location: {lat: 24.7136, lon: 46.6753},
routing_profile: 'car'
}
],
departure_time: '2026-11-01T14:30:00Z',
max_travel_duration_seconds: 900,
demand: {points: [{location: {lat: 24.7136, lon: 46.6753}, weight: 1}]}
}
})
};
fetch('https://b.hudhud.sa/v1/routing/fleet_placement/evaluate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://b.hudhud.sa/v1/routing/fleet_placement/evaluate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => [
'area' => [
],
'bases' => [
[
'id' => 'station-1',
'location' => [
'lat' => 24.7136,
'lon' => 46.6753
],
'routing_profile' => 'car'
]
],
'departure_time' => '2026-11-01T14:30:00Z',
'max_travel_duration_seconds' => 900,
'demand' => [
'points' => [
[
'location' => [
'lat' => 24.7136,
'lon' => 46.6753
],
'weight' => 1
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://b.hudhud.sa/v1/routing/fleet_placement/evaluate"
payload := strings.NewReader("{\n \"model\": {\n \"area\": {},\n \"bases\": [\n {\n \"id\": \"station-1\",\n \"location\": {\n \"lat\": 24.7136,\n \"lon\": 46.6753\n },\n \"routing_profile\": \"car\"\n }\n ],\n \"departure_time\": \"2026-11-01T14:30:00Z\",\n \"max_travel_duration_seconds\": 900,\n \"demand\": {\n \"points\": [\n {\n \"location\": {\n \"lat\": 24.7136,\n \"lon\": 46.6753\n },\n \"weight\": 1\n }\n ]\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://b.hudhud.sa/v1/routing/fleet_placement/evaluate")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": {\n \"area\": {},\n \"bases\": [\n {\n \"id\": \"station-1\",\n \"location\": {\n \"lat\": 24.7136,\n \"lon\": 46.6753\n },\n \"routing_profile\": \"car\"\n }\n ],\n \"departure_time\": \"2026-11-01T14:30:00Z\",\n \"max_travel_duration_seconds\": 900,\n \"demand\": {\n \"points\": [\n {\n \"location\": {\n \"lat\": 24.7136,\n \"lon\": 46.6753\n },\n \"weight\": 1\n }\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.hudhud.sa/v1/routing/fleet_placement/evaluate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": {\n \"area\": {},\n \"bases\": [\n {\n \"id\": \"station-1\",\n \"location\": {\n \"lat\": 24.7136,\n \"lon\": 46.6753\n },\n \"routing_profile\": \"car\"\n }\n ],\n \"departure_time\": \"2026-11-01T14:30:00Z\",\n \"max_travel_duration_seconds\": 900,\n \"demand\": {\n \"points\": [\n {\n \"location\": {\n \"lat\": 24.7136,\n \"lon\": 46.6753\n },\n \"weight\": 1\n }\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"code": "",
"data": {
"cells": [
{
"covering_base_count": 123,
"h3_cell": "8853add715fffff",
"nearest_bases": [
{
"base_id": "station-1",
"travel_duration_seconds": 420
}
],
"weight": 123
}
],
"points": [
{
"covering_base_count": 123,
"nearest_bases": [
{
"base_id": "station-1",
"travel_duration_seconds": 420
}
]
}
],
"summary": {
"reached_weight": 123,
"total_weight": 123
}
},
"error": "",
"ok": true
}{
"code": "",
"data": "<unknown>",
"error": "",
"ok": true
}{
"code": "",
"data": "<unknown>",
"error": "",
"ok": true
}{
"code": "",
"data": "<unknown>",
"error": "",
"ok": true
}{
"code": "",
"data": "<unknown>",
"error": "",
"ok": true
}{
"code": "",
"data": "<unknown>",
"error": "",
"ok": true
}{
"code": "",
"data": "<unknown>",
"error": "",
"ok": true
}{
"code": "",
"data": "<unknown>",
"error": "",
"ok": true
}Fleet Placement
Evaluate Fleet Placement
Measures how well a fleet of bases covers an area within a travel time limit, using travel times on the road network at the departure time.
Returns every H3 resolution 8 cell in the area and every demand point with its fastest base and how many bases reach it, and the demand weight reached.
The contract may change before general availability.
Retryable errors
Retry these errors with exponential backoff and jitter:
500,503, and504.429with the coderate_limit_exceeded. Wait the number of seconds in theRetry-Afterheader.
Do not retry other errors, which fail again unchanged. A 429 with the code daily_limit_exceeded succeeds after the limit resets at 00:00 UTC; one with trial_limit_reached does not succeed again.
POST
/
routing
/
fleet_placement
/
evaluate
Evaluate Fleet Placement (Alpha)
curl --request POST \
--url https://b.hudhud.sa/v1/routing/fleet_placement/evaluate \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"model": {
"area": {},
"bases": [
{
"id": "station-1",
"location": {
"lat": 24.7136,
"lon": 46.6753
},
"routing_profile": "car"
}
],
"departure_time": "2026-11-01T14:30:00Z",
"max_travel_duration_seconds": 900,
"demand": {
"points": [
{
"location": {
"lat": 24.7136,
"lon": 46.6753
},
"weight": 1
}
]
}
}
}
'import requests
url = "https://b.hudhud.sa/v1/routing/fleet_placement/evaluate"
payload = { "model": {
"area": {},
"bases": [
{
"id": "station-1",
"location": {
"lat": 24.7136,
"lon": 46.6753
},
"routing_profile": "car"
}
],
"departure_time": "2026-11-01T14:30:00Z",
"max_travel_duration_seconds": 900,
"demand": { "points": [
{
"location": {
"lat": 24.7136,
"lon": 46.6753
},
"weight": 1
}
] }
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: {
area: {},
bases: [
{
id: 'station-1',
location: {lat: 24.7136, lon: 46.6753},
routing_profile: 'car'
}
],
departure_time: '2026-11-01T14:30:00Z',
max_travel_duration_seconds: 900,
demand: {points: [{location: {lat: 24.7136, lon: 46.6753}, weight: 1}]}
}
})
};
fetch('https://b.hudhud.sa/v1/routing/fleet_placement/evaluate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://b.hudhud.sa/v1/routing/fleet_placement/evaluate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => [
'area' => [
],
'bases' => [
[
'id' => 'station-1',
'location' => [
'lat' => 24.7136,
'lon' => 46.6753
],
'routing_profile' => 'car'
]
],
'departure_time' => '2026-11-01T14:30:00Z',
'max_travel_duration_seconds' => 900,
'demand' => [
'points' => [
[
'location' => [
'lat' => 24.7136,
'lon' => 46.6753
],
'weight' => 1
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://b.hudhud.sa/v1/routing/fleet_placement/evaluate"
payload := strings.NewReader("{\n \"model\": {\n \"area\": {},\n \"bases\": [\n {\n \"id\": \"station-1\",\n \"location\": {\n \"lat\": 24.7136,\n \"lon\": 46.6753\n },\n \"routing_profile\": \"car\"\n }\n ],\n \"departure_time\": \"2026-11-01T14:30:00Z\",\n \"max_travel_duration_seconds\": 900,\n \"demand\": {\n \"points\": [\n {\n \"location\": {\n \"lat\": 24.7136,\n \"lon\": 46.6753\n },\n \"weight\": 1\n }\n ]\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://b.hudhud.sa/v1/routing/fleet_placement/evaluate")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": {\n \"area\": {},\n \"bases\": [\n {\n \"id\": \"station-1\",\n \"location\": {\n \"lat\": 24.7136,\n \"lon\": 46.6753\n },\n \"routing_profile\": \"car\"\n }\n ],\n \"departure_time\": \"2026-11-01T14:30:00Z\",\n \"max_travel_duration_seconds\": 900,\n \"demand\": {\n \"points\": [\n {\n \"location\": {\n \"lat\": 24.7136,\n \"lon\": 46.6753\n },\n \"weight\": 1\n }\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.hudhud.sa/v1/routing/fleet_placement/evaluate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": {\n \"area\": {},\n \"bases\": [\n {\n \"id\": \"station-1\",\n \"location\": {\n \"lat\": 24.7136,\n \"lon\": 46.6753\n },\n \"routing_profile\": \"car\"\n }\n ],\n \"departure_time\": \"2026-11-01T14:30:00Z\",\n \"max_travel_duration_seconds\": 900,\n \"demand\": {\n \"points\": [\n {\n \"location\": {\n \"lat\": 24.7136,\n \"lon\": 46.6753\n },\n \"weight\": 1\n }\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"code": "",
"data": {
"cells": [
{
"covering_base_count": 123,
"h3_cell": "8853add715fffff",
"nearest_bases": [
{
"base_id": "station-1",
"travel_duration_seconds": 420
}
],
"weight": 123
}
],
"points": [
{
"covering_base_count": 123,
"nearest_bases": [
{
"base_id": "station-1",
"travel_duration_seconds": 420
}
]
}
],
"summary": {
"reached_weight": 123,
"total_weight": 123
}
},
"error": "",
"ok": true
}{
"code": "",
"data": "<unknown>",
"error": "",
"ok": true
}{
"code": "",
"data": "<unknown>",
"error": "",
"ok": true
}{
"code": "",
"data": "<unknown>",
"error": "",
"ok": true
}{
"code": "",
"data": "<unknown>",
"error": "",
"ok": true
}{
"code": "",
"data": "<unknown>",
"error": "",
"ok": true
}{
"code": "",
"data": "<unknown>",
"error": "",
"ok": true
}{
"code": "",
"data": "<unknown>",
"error": "",
"ok": true
}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.

Six bases in central Riyadh reach 58.2% of 1.52 million people within 10 minutes at 08:00.
Authorizations
Body
application/json
Bases, departure time, travel time limit, area and demand
