Skip to content
Changelog

OpenRouteServiceTools grounds agents in real routes and travel times

Agno Team

August 5, 20261 min read

LLMs guess at distances. They estimate from training data instead of measuring roads, and the number is confidently wrong often enough to break anything that depends on it.

Our new OpenRouteServiceTools swaps the guess for a real routing engine. You pass plain place names and the toolkit handles geocoding, so an agent gets back accurate distances, real drive times, and turn-by-turn routes from live map data.

from agno.agent import Agent
from agno.tools.openrouteservice import OpenRouteServiceTools
 
agent = Agent(tools=[OpenRouteServiceTools()], markdown=True)
agent.print_response("How long is the drive from Chicago to St. Louis, and what's the route?")

Three tools ship with it: geocode a place name, get directions with real distance and time between two points, and build a distance matrix across many stops for comparing locations at once. Switch the profile to walking or cycling when you need it. Setup is one line plus a free ORS_API_KEY from HeiGIT, no credit card.

See cookbook for reference.

Shipped around the same time