Skip to content

GET /place API

  • Geocoding

Look up details for specific records by Pelias `gid`.

Fetches full feature details for one or more identifiers returned by search or autocomplete operations.
Parameters
NameInTypeRequiredDescription
idsquerystringYesComma separated list of Pelias global identifiers (`gid`).
categoriesquerystringNoSet to any value to include category metadata in `/place` responses.
  • idsqueryRequired
    Typestring

    Comma separated list of Pelias global identifiers (`gid`).

  • categoriesqueryOptional
    Typestring

    Set to any value to include category metadata in `/place` responses.

Sample responses
  • 200 Success — Matching records for the supplied identifiers.

    application/jsonGeoJSONFeatureCollection

    {
    "type": "FeatureCollection",
    "geocoding": {
    "version": "1.0.0",
    "timestamp": "2024-03-18T12:37:22Z",
    "engine": {
    "name": "pelias",
    "author": "geobridge",
    "version": "2.14.0"
    },
    "query": {
    "ids": [
    "openstreetmap:venue:way/5013364"
    ]
    }
    },
    "features": [
    {
    "type": "Feature",
    "geometry": {
    "type": "Point",
    "coordinates": [
    2.294481,
    48.85837
    ]
    },
    "properties": {
    "id": "5013364",
    "gid": "openstreetmap:venue:way/5013364",
    "layer": "venue",
    "source": "openstreetmap",
    "source_id": "way/5013364",
    "name": "Tour Eiffel",
    "label": "Tour Eiffel, Paris 7e Arrondissement, Île-de-France, France",
    "confidence": 0.99,
    "accuracy": "point",
    "continent": "Europe",
    "country": "France",
    "country_a": "FRA",
    "region": "Île-de-France",
    "county": "Paris",
    "locality": "Paris",
    "neighbourhood": "Gros-Caillou",
    "postalcode": "75007",
    "categories": [
    "tourist_attraction",
    "landmark"
    ]
    }
    }
    ]
    }

    Details for a single venue gid.

  • 400 Client error — Invalid identifier supplied.

    application/jsonGeoJSONFeatureCollection

    {
    "type": "FeatureCollection",
    "geocoding": {
    "version": "1.0.0",
    "timestamp": "2024-03-18T12:37:22Z",
    "query": {
    "ids": [
    "openstreetmap|venue|5013364"
    ]
    },
    "errors": [
    {
    "code": "INVALID_GID",
    "message": "ids must follow the source:layer:id format."
    }
    ]
    },
    "features": []
    }

    Identifier failed validation.

  • 404 Client error — None of the supplied identifiers were found.

    application/jsonGeoJSONFeatureCollection

    {
    "type": "FeatureCollection",
    "geocoding": {
    "version": "1.0.0",
    "timestamp": "2024-03-18T12:37:22Z",
    "query": {
    "ids": [
    "whosonfirst:locality:999999999999"
    ]
    },
    "errors": [
    {
    "code": "NOT_FOUND",
    "message": "No records matched the supplied identifiers."
    }
    ]
    },
    "features": []
    }

    Unknown gid provided.

  • 500 Server error — Unexpected server error.

    application/jsonGeoJSONFeatureCollection

    {
    "type": "FeatureCollection",
    "geocoding": {
    "version": "1.0.0",
    "query": {
    "ids": [
    "openstreetmap:venue:way/5013364"
    ]
    },
    "errors": [
    {
    "code": "INTERNAL_SERVER_ERROR",
    "message": "Unexpected exception loading place details."
    }
    ]
    },
    "features": []
    }

    Example payload for a failed place lookup.

Code samples

200 OK

Terminal window
# 200 OK — Fetches details for an OpenStreetMap venue gid.
curl -s -G 'https://api-na.geobridge.io/v1/place' \
-H 'Accept: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
--data-urlencode 'ids=openstreetmap:venue:way/5013364'

400 Bad Request

Terminal window
# 400 Bad Request — Invalid gid format demonstrates request validation.
curl -s -G 'https://api-na.geobridge.io/v1/place' \
-H 'Accept: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
--data-urlencode 'ids=openstreetmap|venue|5013364'

404 Not Found

Terminal window
# 404 Not Found — Unknown gid returns an empty result set and 404.
curl -s -G 'https://api-na.geobridge.io/v1/place' \
-H 'Accept: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
--data-urlencode 'ids=whosonfirst:locality:999999999999'

500 Internal Server Error

Terminal window
# 500 Internal Server Error — Handles server-side failures when fetching place details.
curl -s -G 'https://api-na.geobridge.io/v1/place' \
-H 'Accept: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
--data-urlencode 'ids=openstreetmap:venue:way/5013364'
Try it live

Save your API key once and reuse it across endpoints. Configure the request below and send it directly from the docs.

Stored locally in your browser. Removing it clears access for this device.

Query parameters

Comma separated list of Pelias global identifiers (`gid`).

Set to any value to include category metadata in `/place` responses.

Configure the request and select “Send request” to preview the response.