Tools for interacting with Google Maps services including place search, directions, geocoding, and more
GoogleMapTools enable an Agent to interact with various Google Maps services for location-based operations including place search, directions, geocoding, and more.
from agno.agent import Agentfrom agno.tools.google_maps import GoogleMapToolsagent = Agent(tools=[GoogleMapTools()], show_tool_calls=True)agent.print_response("Find coffee shops in San Francisco")
Search for places using Google Maps Places API. Parameters: query (str) for the search query. Returns stringified JSON with place details including name, address, phone, website, rating, and hours.
get_directions
Get directions between locations. Parameters: origin (str), destination (str), optional mode (str) for travel mode, optional avoid (List[str]) for features to avoid. Returns route information.