# /googleplaces

## details for a place from Google Places API.

<mark style="color:blue;">`GET`</mark> `geolytix.xyz/api/gazetteer/googleplaces`

Proxies a request for place details to the Google Places API. A **KEY\_GOOGLE** entry is required in the environment settings.

#### Query Parameters

| Name  | Type   | Description                     |
| ----- | ------ | ------------------------------- |
| id    | string | The Google Place ID.            |
| token | string | Required for private endpoints. |

{% tabs %}
{% tab title="200 Returns the coordinates of the Google Place." %}
```javascript
{  
   "type":"Point",
   "coordinates":[  
      -0.1277583,
      51.5073509
   ]
}
```
{% endtab %}

{% tab title="401 Returned when trying to access a private endpoint with an invalid or missing token." %}
```
'Invalid token.'
```
{% endtab %}

{% tab title="500 When provided with an invalid Google Place ID." %}
```javascript
{  
   "statusCode":500,
   "error":"Internal Server Error",
   "message":"Cannot read property 'geometry' of undefined"
}
```
{% endtab %}
{% endtabs %}

