***

title: GoogleMapsSkill
slug: /reference/typescript/agents/skills/google-maps
description: Get driving/walking/transit directions and search for places using Google Maps APIs.
---------------------

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

[add-skill]: /docs/server-sdks/reference/typescript/agents/agent-base/add-skill

Get driving/walking/transit directions and search for places using Google Maps APIs.

**Class:** `GoogleMapsSkill`

**Tools:** `get_directions`, `find_place`

**Env vars:** `GOOGLE_MAPS_API_KEY`

<ParamField path="api_key" type="string" required={true} toc={true}>
  Google Maps API key with Directions and Places APIs enabled.
  Falls back to the `GOOGLE_MAPS_API_KEY` environment variable.
</ParamField>

<ParamField path="default_mode" type="string" default="driving" toc={true}>
  Default travel mode: `"driving"`, `"walking"`, `"bicycling"`, or `"transit"`.
</ParamField>

```typescript {6-8}
import { AgentBase, GoogleMapsSkill } from '@signalwire/sdk';

const agent = new AgentBase({ name: 'assistant', route: '/assistant' });
agent.setPromptText('You are a helpful assistant.');

await agent.addSkill(new GoogleMapsSkill({
  default_mode: 'transit',
}));

agent.run();
```