Obtain a HERE platform account and generate an API key or OAuth credentials from the HERE platform portal at platform.here.com.
Use the HERE Routing v8 API to compute a route between origin and destination, requesting the 'tollCost' in the 'return' parameter of the route request.
Parse the tollCost section of the route response: extract total toll cost, currency, and per-segment toll details including applicable road types (motorway, bridge, tunnel, urban).
Optionally POST vehicle attributes (emission class, fuel type, axle count) to the routingMode parameter to get vehicle-class-specific toll pricing.
Surface the per-country toll cost breakdown for cross-border routes (e.g., France + Spain on a Paris-to-Barcelona trip).
Use the HERE Traffic API alongside toll data to present a 'cheapest vs fastest' route comparison that weighs toll savings against extra travel time.
Known gotchas
HERE Toll Cost data accuracy varies by country; EU motorway tolls are well-covered, but smaller local roads or country-specific vignette systems (Austria, Switzerland) may require manual supplementation.
Toll costs returned are estimates based on standard tariffs; congestion pricing, weekend surcharges, and promotional discounts are not always reflected — add an appropriate disclaimer.
HERE Routing v8 replaced v7 (Routing API v7 was deprecated); do not use the legacy '/route/v7' base path in new integrations.
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp