Google Maps

Learn how to use Google Maps with Composio

Overview

SLUG

GOOGLE_MAPS

Description

Integrate Google Maps to access location data, geocoding, directions, and mapping services in your application.

Authentication Details

client_id
stringRequired
client_secret
stringRequired
oauth_redirect_uri
stringDefaults to https://backend.composio.dev/api/v1/auth-apps/add
scopes
stringDefaults to https://www.googleapis.com/auth/cloud-platform
bearer_token
string
generic_api_key
stringRequired

Tools

SLUG: GOOGLE_MAPS_DISTANCE_MATRIX_API

Calculates travel distance and time for a matrix of origins and destinations. supports different modes of transportation and options like departure/arrival times. use when needing to determine travel metrics between multiple points.

Action Parameters

arrival_time
integer
avoid
string
departure_time
integer
destinations
stringRequired
key
string
language
string
mode
stringDefaults to driving
origins
stringRequired
region
string
traffic_model
string
transit_mode
string
transit_routing_preference
string
units
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLE_MAPS_GEOCODING_API

Tool to convert addresses into geographic coordinates (latitude and longitude) and vice versa (reverse geocoding), or get an address for a place id. use for finding coordinates for an address, finding an address for coordinates, or looking up an address by its place id.

Action Parameters

address
string
bounds
string
components
string
extra_computations
array
key
stringRequired
language
string
latlng
string
location_type
string
place_id
string
region
string
result_type
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLE_MAPS_MAPS_EMBED_API

Tool to generate an embeddable google map url and html iframe code. use when you need to display a map (place, view, directions, street view, search) on a webpage without javascript.

Action Parameters

directions_params
object
mode
stringRequired
place_params
object
search_params
object
streetview_params
object
view_params
object

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLE_MAPS_GET_DIRECTION

Fetches detailed directions between an origin and a destination, supporting intermediate waypoints and various travel modes.

Action Parameters

avoid
string
destination
stringRequired
language
stringDefaults to en
mode
stringDefaults to driving
origin
stringRequired
units
stringDefaults to imperial
waypoints
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLE_MAPS_GET_ROUTE

Calculates one or more routes between two specified locations using various travel modes and preferences; addresses must be resolvable by google maps.

Action Parameters

computeAlternativeRoutes
boolean
destination_address
stringRequired
fieldMask
stringDefaults to routes.distanceMeters,routes.duration,routes.polyline.encodedPolyline
languageCode
stringDefaults to en-US
origin_address
stringRequired
routeModifiers_avoidFerries
boolean
routeModifiers_avoidHighways
boolean
routeModifiers_avoidTolls
boolean
routingPreference
stringDefaults to TRAFFIC_AWARE
travelMode
stringDefaults to DRIVE
units
stringDefaults to IMPERIAL

Action Response

data
objectRequired
error
string
successful
booleanRequired