GoogleMapsSkill

View as MarkdownOpen in Claude

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

api_key
stringRequired

Google Maps API key with Directions and Places APIs enabled. Falls back to the GOOGLE_MAPS_API_KEY environment variable.

default_mode
stringDefaults to driving

Default travel mode: "driving", "walking", "bicycling", or "transit".

1import { AgentBase, GoogleMapsSkill } from '@signalwire/sdk';
2
3const agent = new AgentBase({ name: 'assistant', route: '/assistant' });
4agent.setPromptText('You are a helpful assistant.');
5
6await agent.addSkill(new GoogleMapsSkill({
7 default_mode: 'transit',
8}));
9
10agent.run();