feat: add a traffic flow tool

Add get_traffic_flow over the traffic source's TomTom flow tiles. It
reports average speed as a share of free-flow speed, congested and
closed road length, and a breakdown by road category, stepping down a
zoom level when an area needs more tiles than the source reads at once.
This commit is contained in:
Sameh Khamis committed 2026-10-01 12:36:00 -07:00
1 parent e6cbcc31ad
commit 9d12da0a79
7 files changed
+241 -3

No files matched your search

+6 -1
View File
@@ -25,7 +25,11 @@ import {
getVesselTrack,
vesselsInArea,
} from './queries/maritime.js';
import { getBikeShare, getTransitVehicles } from './queries/mobility.js';
import {
getBikeShare,
getTrafficFlow,
getTransitVehicles,
} from './queries/mobility.js';
import { placesNearby, planRoute, searchPlaces } from './queries/places.js';
import {
findCctvCameras,
@@ -81,6 +85,7 @@ export const coreTools = Object.freeze([
planRoute,
getBikeShare,
getTransitVehicles,
getTrafficFlow,
getWeather,
getRegionalBrief,
getCyclones,