For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReference
GuidesReference
    • Core
      • Overview
    • Agents
      • Overview
      • AgentBase
      • AgentServer
      • Configuration
      • ContextBuilder
      • DataMap
      • FunctionResult
      • Helper Functions & Utilities
      • LiveWire
      • PomBuilder
      • Prefabs
      • SkillBase
      • SkillManager
      • SkillRegistry
      • Skills
        • ApiNinjasTriviaSkill
        • AskClaudeSkill
        • ClaudeSkillsSkill
        • CustomSkillsSkill
        • DataSphereServerlessSkill
        • DataSphereSkill
        • DateTimeSkill
        • GoogleMapsSkill
        • InfoGathererSkill
        • JokeSkill
        • MathSkill
        • McpGatewaySkill
        • NativeVectorSearchSkill
        • PlayBackgroundFileSkill
        • SpiderSkill
        • SwmlTransferSkill
        • WeatherApiSkill
        • WebSearchSkill
        • WikipediaSearchSkill
      • SwaigFunction
      • SwmlBuilder
      • SWMLService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • ChatResource
      • Compat
      • Datasphere
      • Fabric
      • ImportedNumbersResource
      • Logs
      • LookupResource
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSubResource
      • Queues
      • Recordings
      • Registry
      • RestClient
      • RestError
      • Short Codes
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • api_key
  • default_mode
  • route_tool_name
  • lookup_tool_name
  • geocode_tool_name
  • route_by_coords_tool_name
AgentsSkills

GoogleMapsSkill

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

InfoGathererSkill

Next
Built with

Get driving/walking/transit directions, find places, geocode addresses, and compute routes by coordinates using Google Maps APIs.

Class: GoogleMapsSkill

Tools: compute_route, lookup_address, geocode_address, compute_route_by_coords (each tool name is configurable).

Env vars: GOOGLE_MAPS_API_KEY (required — the tool handlers read this directly and do not fall back to an api_key config value).

api_key
stringRequired

Schema-level declaration for the Google Maps API key. The tool handlers read the GOOGLE_MAPS_API_KEY environment variable at request time; a config value is not used as a fallback.

default_mode
stringDefaults to driving

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

route_tool_name
stringDefaults to compute_route

Custom name for the route computation tool.

lookup_tool_name
stringDefaults to lookup_address

Custom name for the address / place lookup tool.

geocode_tool_name
stringDefaults to geocode_address

Custom name for the address-to-coordinates geocode tool.

route_by_coords_tool_name
stringDefaults to compute_route_by_coords

Custom name for the coordinate-based route computation tool.

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();