> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinkfish.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# google-maps-api

> Google Maps API

**Server path:** `/google-maps-api` | **Type:** Application | **PCID required:** Yes

## Tools

| Tool                                                                  | Description               |
| --------------------------------------------------------------------- | ------------------------- |
| [`google-maps-api_directions`](#google-maps-api_directions)           | Get directions            |
| [`google-maps-api_distance_matrix`](#google-maps-api_distance_matrix) | Calculate distance matrix |
| [`google-maps-api_elevation`](#google-maps-api_elevation)             | Get elevation data        |
| [`google-maps-api_geocode`](#google-maps-api_geocode)                 | Geocode an address        |
| [`google-maps-api_place_details`](#google-maps-api_place_details)     | Get place details         |
| [`google-maps-api_search_places`](#google-maps-api_search_places)     | Search for places         |

***

## google-maps-api\_directions

Get directions

**Parameters:**

| Parameter      | Type    | Required | Default | Description                                   |
| -------------- | ------- | -------- | ------- | --------------------------------------------- |
| `origin`       | string  | Yes      | —       | Starting point address or lat,lng coordinates |
| `destination`  | string  | Yes      | —       | Ending point address or lat,lng coordinates   |
| `mode`         | string  | No       | —       | Travel mode                                   |
| `alternatives` | boolean | No       | —       | Whether to return alternative routes          |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "origin": {
        "type": "string",
        "description": "Starting point address or lat,lng coordinates"
      },
      "destination": {
        "type": "string",
        "description": "Ending point address or lat,lng coordinates"
      },
      "mode": {
        "type": "string",
        "description": "Travel mode",
        "enum": [
          "driving",
          "walking",
          "bicycling",
          "transit"
        ]
      },
      "alternatives": {
        "type": "boolean",
        "description": "Whether to return alternative routes"
      }
    },
    "required": [
      "PCID",
      "origin",
      "destination"
    ]
  }
  ```
</Expandable>

***

## google-maps-api\_distance\_matrix

Calculate distance matrix

**Parameters:**

| Parameter      | Type   | Required | Default | Description                                                                                    |
| -------------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------- |
| `origins`      | string | Yes      | —       | Pipe-separated list of origin addresses or lat,lng coordinates (e.g. 'New York,NY\|Boston,MA') |
| `destinations` | string | Yes      | —       | Pipe-separated list of destination addresses or lat,lng coordinates                            |
| `mode`         | string | No       | —       | Travel mode                                                                                    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "origins": {
        "type": "string",
        "description": "Pipe-separated list of origin addresses or lat,lng coordinates (e.g. 'New York,NY|Boston,MA')"
      },
      "destinations": {
        "type": "string",
        "description": "Pipe-separated list of destination addresses or lat,lng coordinates"
      },
      "mode": {
        "type": "string",
        "description": "Travel mode",
        "enum": [
          "driving",
          "walking",
          "bicycling",
          "transit"
        ]
      }
    },
    "required": [
      "PCID",
      "origins",
      "destinations"
    ]
  }
  ```
</Expandable>

***

## google-maps-api\_elevation

Get elevation data

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                                                                        |
| ----------- | ------ | -------- | ------- | -------------------------------------------------------------------------------------------------- |
| `locations` | string | Yes      | —       | Pipe-separated list of lat,lng coordinates (e.g. '39.7391536,-104.9847034\|36.455556,-116.866667') |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "locations": {
        "type": "string",
        "description": "Pipe-separated list of lat,lng coordinates (e.g. '39.7391536,-104.9847034|36.455556,-116.866667')"
      }
    },
    "required": [
      "PCID",
      "locations"
    ]
  }
  ```
</Expandable>

***

## google-maps-api\_geocode

Geocode an address

**Parameters:**

| Parameter | Type   | Required | Default | Description                                 |
| --------- | ------ | -------- | ------- | ------------------------------------------- |
| `address` | string | Yes      | —       | The street address or place name to geocode |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "address": {
        "type": "string",
        "description": "The street address or place name to geocode"
      }
    },
    "required": [
      "PCID",
      "address"
    ]
  }
  ```
</Expandable>

***

## google-maps-api\_place\_details

Get place details

**Parameters:**

| Parameter  | Type   | Required | Default | Description                                                                                                                                       |
| ---------- | ------ | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `place_id` | string | Yes      | —       | The place\_id of the place to get details for (obtained from geocode or search results)                                                           |
| `fields`   | string | No       | —       | Comma-separated list of place data fields to return (e.g. name,formatted\_address,rating,reviews). If omitted, all available fields are returned. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "place_id": {
        "type": "string",
        "description": "The place_id of the place to get details for (obtained from geocode or search results)"
      },
      "fields": {
        "type": "string",
        "description": "Comma-separated list of place data fields to return (e.g. name,formatted_address,rating,reviews). If omitted, all available fields are returned."
      }
    },
    "required": [
      "PCID",
      "place_id"
    ]
  }
  ```
</Expandable>

***

## google-maps-api\_search\_places

Search for places

**Parameters:**

| Parameter  | Type    | Required | Default | Description                                                                              |
| ---------- | ------- | -------- | ------- | ---------------------------------------------------------------------------------------- |
| `query`    | string  | Yes      | —       | The text query to search for (e.g. "restaurants in Sydney" or "coffee near me")          |
| `location` | string  | No       | —       | Latitude/longitude to bias results around, formatted as lat,lng (e.g. -33.8670,151.1957) |
| `radius`   | integer | No       | —       | Search radius in meters (max 50000). Requires location parameter.                        |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "query": {
        "type": "string",
        "description": "The text query to search for (e.g. \"restaurants in Sydney\" or \"coffee near me\")"
      },
      "location": {
        "type": "string",
        "description": "Latitude/longitude to bias results around, formatted as lat,lng (e.g. -33.8670,151.1957)"
      },
      "radius": {
        "type": "integer",
        "description": "Search radius in meters (max 50000). Requires location parameter."
      }
    },
    "required": [
      "PCID",
      "query"
    ]
  }
  ```
</Expandable>
