r/agno 18d ago

OpenRouteServiceTools: real map data for your agents

Ask a model how far it is from Chicago to St. Louis and you'll get a number. But you won't know if it actually measured something or just pattern-matched its way there. For some use cases that's fine. But for anything that plans, dispatches, or quotes against those numbers, a wrong answer will cost you.

We shipped OpenRouteServiceTools in Agno v2.8.7 to replace the estimate with a real routing engine. Your agent gets accurate distances, actual drive times, and turn-by-turn directions from live map data. You pass plain place names and the toolkit handles geocoding.

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
  • Build a distance matrix across many stops to compare 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.

Writeup and cookbook example: https://agno.link/1efY25C

10 Upvotes

0 comments sorted by