For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Interface RoutingSummary
interface RoutingSummary {
bbox: RoutingBBox;
cost: number;
ferry?: boolean;
highway?: boolean;
toll?: boolean;
totalLength: number;
totalTime: number;
}
bbox: RoutingBBox;
cost: number;
ferry?: boolean;
highway?: boolean;
toll?: boolean;
totalLength: number;
totalTime: number;
}
Properties
bbox
Bounding box of the route
cost
cost: number
Cost calculated by the costing model
Optionalferry
ferry?: boolean
Whether route contains ferries
Optionalhighway
highway?: boolean
Whether route contains highways
Optionaltoll
toll?: boolean
Whether route contains tolls
totalLength
totalLength: number
Total travel distance in chosen units
totalTime
totalTime: number
Total travel time in seconds
Summary of a route or a leg