Access location data, search places, get directions, and elevation information using Google Maps
Google Maps allows you to access comprehensive location services programmatically. You can convert addresses to coordinates (geocoding), search for places by name or type, get detailed information about specific locations, calculate distances and travel times between multiple points, obtain elevation data, and get turn-by-turn directions. This integration is perfect for location-based applications, travel planning, and geographic data analysis.
Required:
action
- The operation to perform with Google MapsConvert an address to geographic coordinates
Parameters:
address
(required) - The address to geocodeExample:
Response:
Search for places by text query within a specified area
Parameters:
query
(required) - What you’re searching for (e.g., “restaurants”, “hotels”)location
(required) - Geographic coordinates as “latitude,longitude”radius
(required) - Search radius in metersExample:
Response:
Get detailed information about a specific place
Parameters:
place-id
(required) - The unique identifier for a placeExample:
Response:
Calculate distance and travel time between origins and destinations
Parameters:
origins
(required) - Starting points (pipe-separated for multiple)destinations
(required) - Ending points (pipe-separated for multiple)mode
(required) - Travel mode: driving, walking, bicycling, or transitExample:
Response:
Get turn-by-turn directions between locations
Parameters:
origin
(required) - Starting point as address or coordinatesdestination
(required) - Ending point as address or coordinatesmode
(required) - Travel mode: driving, walking, bicycling, or transitExample:
Response:
Get elevation data for specific locations
Parameters:
locations
(required) - Pipe-separated list of lat,lng coordinatesExample:
Response:
All user-provided inputs are automatically encoded to prevent errors. For multiple origins or destinations, separate them with pipe characters (|). Coordinates should be provided in decimal degrees format (latitude,longitude). Travel modes include driving, walking, bicycling, and transit. Place IDs obtained from search results can be used to get detailed information about specific locations.