***

title: google_maps
slug: /reference/python/agents/skills/google-maps
description: Validate addresses and compute driving routes using Google Maps.
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Validate addresses and compute driving routes using Google Maps. Handles spoken number
normalization (e.g., "seven one four" becomes "714") and location-biased search.

**Tools:** `lookup_address`, `compute_route`

**Requirements:** Google Maps API key with Geocoding and Routes APIs enabled

<ParamField path="api_key" type="str" required={true} toc={true}>
  Google Maps API key.
</ParamField>

<ParamField path="lookup_tool_name" type="str" default="lookup_address" toc={true}>
  Custom name for the address lookup function.
</ParamField>

<ParamField path="route_tool_name" type="str" default="compute_route" toc={true}>
  Custom name for the route computation function.
</ParamField>

```python
from signalwire import AgentBase

class MyAgent(AgentBase):
    def __init__(self):
        super().__init__(name="assistant", route="/assistant")
        self.set_prompt_text("You are a helpful assistant.")
        self.add_skill("google_maps", {"api_key": "YOUR_GOOGLE_MAPS_API_KEY"})

agent = MyAgent()
agent.serve()
```