---
title: "Resolve a Google place ID to a PurpleGrain place"
method: GET
path: "/predictions/{id}"
tags: ["Predictions"]
---

# Resolve a Google place ID to a PurpleGrain place

`GET /predictions/{id}`

## Request

- Base URL: `https://api.purplegrain.com/api/v1`
- URL: `https://api.purplegrain.com/api/v1/predictions/{id}`
- Auth: none declared

Resolve a Google Places place ID into a PurpleGrain address or city. Returns the supplied place ID, the lookup time as created_at, and the resolved place relationship; use include=place to embed that place. Sends the place ID to Google Places and may create local address, city and location reference records. This is a place-resolution operation with possible writes, rather than a read of an existing prediction record.

## Path parameters

- `id` string, required

## Query parameters

- `include` string

## Response `200`

Successful. When the `include` query parameter is used, the response may contain an `included` array (JSON:API) or inlined related resources (application/json).

- PredictionsShowResponseAttributes
  - `data` PredictionModelAttributes: Prediction in attributes-adapter shape (Accept application/json); fields at top level.
    - `id` string
    - `type` string
    - `created_at` string, date-time
    - `place` object: Inlined when include=place

## Other responses

- `404`: Not Found

---

[API](https://skmtc.dev/purplegrain/apis/purple-grain-api.md) · [All operations](https://skmtc.dev/purplegrain/apis/purple-grain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/purplegrain/apis/purple-grain-api/revisions/4bedbc1c784c?raw)
