localitiesDetails

fun localitiesDetails(publicId: String, language: String? = null, fields: Fields? = null, ccFormat: CcFormat? = null): LocalitiesDetailsResponseResult

Details of a Locality Provides details of an autocomplete suggestion (using the suggestion’s public_id).

Parameters

publicId

A textual identifier that uniquely identifies a locality, returned from a Localities Autocomplete.

language

The language code, using ISO 3166-1 Alpha-2 or Alpha-3 country codes, indicating in which language the results should be returned, if possible. If language is not supplied, the Localities service will use english as default language. No language necessary for postal_code request. (optional)

fields

Used to limit the returning fields when type=address (by default, and for other types localities, all fields are return). Only one field is available: geometry. By using this parameter you will limit content of responses to the geometry part. No address component will be returned. (optional)

ccFormat

To specify the format for the short country code expected to be returned in the address_components field (default is alpha3). (optional)

Throws

If the request is not correctly configured

Rethrows the OkHttp execute method exception

If the API returns an informational or redirection response

ClientException

If the API returns a client error response

ServerException

If the API returns a server error response