Skip to main content

resolve_place

Resolve Place

Returns the full place for a place ID taken from a /places suggestion.

On top of the fields carried by the suggestion, the response adds coordinates, language and the underlying dataset record.

Each request decrements your lookup balance. An unknown ID returns 404.

Endpoint​

GET /places/{place}

See the API reference for this endpoint.

Import​

from ideal_postcodes import IdealPostcodes

Call resolve_place on the IdealPostcodes client. Path parameters are positional; query and body parameters are keyword-only.

Path Parameters​

NameTypeRequiredDescription
placestryesID of place suggestion

Query Parameters​

NameTypeRequiredDescription
tagsstrnoTags A comma separated list of tags to query over. Useful if you want to specify the circumstances in which the request was made. If you specify multiple tags, the response comprises only requests that satisfy all of them. Searching "foo,bar" queries only requests tagged both "foo" and "bar".

Response Type​

from ideal_postcodes.types import ResolvePlaceResult

Errors​

Unsuccessful HTTP responses raise APIError or a subclass, with the HTTP status and the API error code and message. Connection failures and timeouts raise TransportError. Unexpected responses raise ProtocolError. All derive from ClientError. See error handling.

Example​

resolve_place.pypython
from ideal_postcodes import IdealPostcodes

with IdealPostcodes("ak_test") as client:
place = client.resolve_place("geonames_2643743")