Integrate Google Maps Platform APIs into your workflow. Supports geocoding addresses to coordinates, reverse geocoding, getting directions between locations, calculating distance matrices, searching for places, retrieving place details, elevation data, and timezone information.
Get current air quality data for a location
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key with Air Quality API enabled |
lat | number | Yes | Latitude coordinate |
lng | number | Yes | Longitude coordinate |
languageCode | string | No | Language code for the response (e.g., "en", "es") |
| Parameter | Type | Description |
|---|
dateTime | string | Timestamp of the air quality data |
regionCode | string | Region code for the location |
indexes | array | Array of air quality indexes |
pollutants | array | Array of pollutant concentrations |
healthRecommendations | object | Health recommendations for different populations |
Get directions and route information between two locations
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key |
origin | string | Yes | Starting location (address or lat,lng) |
destination | string | Yes | Destination location (address or lat,lng) |
mode | string | No | Travel mode: driving, walking, bicycling, or transit |
avoid | string | No | Features to avoid: tolls, highways, or ferries |
waypoints | json | No | Array of intermediate waypoints |
units | string | No | Unit system: metric or imperial |
language | string | No | Language code for results (e.g., en, es, fr) |
| Parameter | Type | Description |
|---|
routes | array | All available routes |
distanceText | string | Total distance as human-readable text (e.g., "5.2 km") |
distanceMeters | number | Total distance in meters |
durationText | string | Total duration as human-readable text (e.g., "15 mins") |
durationSeconds | number | Total duration in seconds |
startAddress | string | Resolved starting address |
endAddress | string | Resolved ending address |
steps | array | Turn-by-turn navigation instructions |
polyline | string | Encoded polyline for the primary route |
Calculate travel distance and time between multiple origins and destinations
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key |
origin | string | Yes | Origin location (address or lat,lng) |
destinations | json | Yes | Array of destination locations |
mode | string | No | Travel mode: driving, walking, bicycling, or transit |
avoid | string | No | Features to avoid: tolls, highways, or ferries |
units | string | No | Unit system: metric or imperial |
language | string | No | Language code for results (e.g., en, es, fr) |
| Parameter | Type | Description |
|---|
originAddresses | array | Resolved origin addresses |
destinationAddresses | array | Resolved destination addresses |
rows | array | Distance matrix rows (one per origin) |
Get elevation data for a location
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key |
lat | number | Yes | Latitude coordinate |
lng | number | Yes | Longitude coordinate |
| Parameter | Type | Description |
|---|
elevation | number | Elevation in meters above sea level (negative for below) |
lat | number | Latitude of the elevation sample |
lng | number | Longitude of the elevation sample |
resolution | number | Maximum distance between data points (meters) from which elevation was interpolated |
Convert an address into geographic coordinates (latitude and longitude)
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key |
address | string | Yes | The address to geocode |
language | string | No | Language code for results (e.g., en, es, fr) |
region | string | No | Region bias as a ccTLD code (e.g., us, uk) |
| Parameter | Type | Description |
|---|
formattedAddress | string | The formatted address string |
lat | number | Latitude coordinate |
lng | number | Longitude coordinate |
location | json | Location object with lat and lng |
placeId | string | Google Place ID for this location |
addressComponents | array | Detailed address components |
locationType | string | Location accuracy type (ROOFTOP, RANGE_INTERPOLATED, etc.) |
Geolocate a device using WiFi access points, cell towers, or IP address
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key with Geolocation API enabled |
homeMobileCountryCode | number | No | Home mobile country code (MCC) |
homeMobileNetworkCode | number | No | Home mobile network code (MNC) |
radioType | string | No | Radio type: lte, gsm, cdma, wcdma, or nr |
carrier | string | No | Carrier name |
considerIp | boolean | No | Whether to use IP address for geolocation (default: true) |
cellTowers | array | No | Array of cell tower objects with cellId, locationAreaCode, mobileCountryCode, mobileNetworkCode |
wifiAccessPoints | array | No | Array of WiFi access point objects with macAddress (required), signalStrength, etc. |
| Parameter | Type | Description |
|---|
lat | number | Latitude coordinate |
lng | number | Longitude coordinate |
accuracy | number | Accuracy radius in meters |
Get detailed information about a specific place
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key |
placeId | string | Yes | Google Place ID |
fields | string | No | Comma-separated list of fields to return |
language | string | No | Language code for results (e.g., en, es, fr) |
| Parameter | Type | Description |
|---|
placeId | string | Google Place ID |
name | string | Place name |
formattedAddress | string | Formatted street address |
lat | number | Latitude coordinate |
lng | number | Longitude coordinate |
types | array | Place types (e.g., restaurant, cafe) |
rating | number | Average rating (1.0 to 5.0) |
userRatingsTotal | number | Total number of user ratings |
priceLevel | number | Price level (0=Free, 1=Inexpensive, 2=Moderate, 3=Expensive, 4=Very Expensive) |
website | string | Place website URL |
phoneNumber | string | Local formatted phone number |
internationalPhoneNumber | string | International formatted phone number |
openNow | boolean | Whether the place is currently open |
weekdayText | array | Opening hours formatted by day of week |
reviews | array | User reviews (up to 5 most relevant) |
photos | array | Place photos |
url | string | Google Maps URL for the place |
utcOffset | number | UTC offset in minutes |
vicinity | string | Simplified address (neighborhood/street) |
businessStatus | string | Business status (OPERATIONAL, CLOSED_TEMPORARILY, CLOSED_PERMANENTLY) |
Search for places of a given type within a radius of a location
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key |
lat | number | Yes | Latitude of the center point to search around |
lng | number | Yes | Longitude of the center point to search around |
radius | number | Yes | Search radius in meters (up to 50000) |
includedTypes | array | No | Place types to include in the results (e.g., restaurant, cafe) |
maxResultCount | number | No | Maximum number of results to return (1-20, defaults to 20) |
rankPreference | string | No | How to rank results: POPULARITY (default) or DISTANCE |
languageCode | string | No | Language code for the response (e.g., en, es) |
regionCode | string | No | Region bias as a ccTLD code (e.g., us, uk) |
| Parameter | Type | Description |
|---|
places | array | List of places found near the given location |
Search for places using a text query
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key |
query | string | Yes | Search query (e.g., "restaurants in Times Square") |
location | json | No | Location to bias results towards ({lat, lng}) |
radius | number | No | Search radius in meters |
type | string | No | Place type filter (e.g., restaurant, cafe, hotel) |
language | string | No | Language code for results (e.g., en, es, fr) |
region | string | No | Region bias as a ccTLD code (e.g., us, uk) |
pageToken | string | No | Token from a previous search response to fetch the next page of results. Wait a couple seconds after receiving the token before using it, or the API returns INVALID_REQUEST |
| Parameter | Type | Description |
|---|
places | array | List of places found |
nextPageToken | string | Token for fetching the next page of results |
Get a daily pollen forecast (grass, tree, weed) for a location
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key with Pollen API enabled |
lat | number | Yes | Latitude coordinate |
lng | number | Yes | Longitude coordinate |
days | number | No | Number of forecast days to return (1-5, defaults to 1) |
languageCode | string | No | Language code for the response (e.g., "en", "es") |
plantsDescription | boolean | No | Include detailed plant descriptions (defaults to true) |
| Parameter | Type | Description |
|---|
regionCode | string | Region code (ISO 3166-1 alpha-2) for the location |
dailyInfo | array | Daily pollen forecast entries |
Convert geographic coordinates (latitude and longitude) into a human-readable address
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key |
lat | number | Yes | Latitude coordinate |
lng | number | Yes | Longitude coordinate |
language | string | No | Language code for results (e.g., en, es, fr) |
| Parameter | Type | Description |
|---|
formattedAddress | string | The formatted address string |
placeId | string | Google Place ID for this location |
addressComponents | array | Detailed address components |
types | array | Address types (e.g., street_address, route) |
Snap GPS coordinates to the nearest road segment
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key with Roads API enabled |
path | string | Yes | Pipe-separated list of lat,lng coordinates (e.g., "60.170880,24.942795|60.170879,24.942796") |
interpolate | boolean | No | Whether to interpolate additional points along the road |
| Parameter | Type | Description |
|---|
snappedPoints | array | Array of snapped points on roads |
warningMessage | string | Warning message if any (e.g., if points could not be snapped) |
Get solar potential and panel insights for the building nearest a location
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key with Solar API enabled |
lat | number | Yes | Latitude coordinate |
lng | number | Yes | Longitude coordinate |
requiredQuality | string | No | Minimum imagery quality to accept (HIGH, MEDIUM, or BASE) |
| Parameter | Type | Description |
|---|
name | string | Resource name of the building (e.g., "buildings/ChIJ...") |
center | object | Center coordinate of the building |
imageryDate | object | Date the underlying imagery was captured |
imageryQuality | string | Quality of the imagery used (HIGH, MEDIUM, BASE) |
regionCode | string | Region code (ISO 3166-1 alpha-2) for the building |
postalCode | string | Postal code of the building |
administrativeArea | string | Administrative area (e.g., state or province) |
solarPotential | object | Solar potential: max panel count/area, sunshine hours, carbon offset, panel specs, and configs |
Get speed limits for road segments. Requires either path coordinates or placeIds.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key with Roads API enabled |
path | string | No | Pipe-separated list of lat,lng coordinates (required if placeIds not provided) |
placeIds | array | No | Array of Place IDs for road segments (required if path not provided) |
units | string | No | Units for the returned speed limits: KPH (default) or MPH |
| Parameter | Type | Description |
|---|
speedLimits | array | Array of speed limits for road segments |
snappedPoints | array | Array of snapped points corresponding to the speed limits |
Get timezone information for a location
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key |
lat | number | Yes | Latitude coordinate |
lng | number | Yes | Longitude coordinate |
timestamp | number | No | Unix timestamp to determine DST offset (defaults to current time) |
language | string | No | Language code for timezone name (e.g., en, es, fr) |
| Parameter | Type | Description |
|---|
timeZoneId | string | IANA timezone ID (e.g., "America/New_York", "Europe/London") |
timeZoneName | string | Localized timezone name (e.g., "Eastern Daylight Time") |
rawOffset | number | UTC offset in seconds (without DST) |
dstOffset | number | Daylight Saving Time offset in seconds (0 if not in DST) |
totalOffsetSeconds | number | Total UTC offset in seconds (rawOffset + dstOffset) |
totalOffsetHours | number | Total UTC offset in hours (e.g., -5 for EST, -4 for EDT) |
Validate and standardize a postal address
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | Google Maps API key with Address Validation API enabled |
address | string | Yes | The address to validate (as a single string) |
regionCode | string | No | ISO 3166-1 alpha-2 country code (e.g., "US", "CA") |
locality | string | No | City or locality name |
enableUspsCass | boolean | No | Enable USPS CASS validation for US addresses |
| Parameter | Type | Description |
|---|
formattedAddress | string | The standardized formatted address |
lat | number | Latitude coordinate |
lng | number | Longitude coordinate |
placeId | string | Google Place ID for this address |
addressComplete | boolean | Whether the address is complete and deliverable |
hasUnconfirmedComponents | boolean | Whether some address components could not be confirmed |
hasInferredComponents | boolean | Whether some components were inferred (not in input) |
hasReplacedComponents | boolean | Whether some components were replaced with canonical values |
validationGranularity | string | Granularity of validation (PREMISE, SUB_PREMISE, ROUTE, etc.) |
geocodeGranularity | string | Granularity of the geocode result |
addressComponents | array | Detailed address components |
missingComponentTypes | array | Types of address components that are missing |
unconfirmedComponentTypes | array | Types of components that could not be confirmed |
unresolvedTokens | array | Input tokens that could not be resolved |
- Category:
tools
- Type:
google_maps