LocalitiesService

class LocalitiesService : ApiClient

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun localitiesAutocomplete(input: String, types: List<LocalitiesTypes>? = null, componentsCountries: List<String>? = null, language: String? = null, location: LatLng? = null, radius: Int? = null, data: Data? = null, extended: Extended? = null, customDescription: Map<LocalitiesTypes, String>? = null): List<LocalitiesAutocompleteResponse>?

Autocomplete for Localities Autocomplete on worldwide suggestions for a for text-based geographic searches. It can match on full words as well as substrings. You can therefore send queries as the user types, to provide on-the-fly city names, postal codes or suburb name suggestions. >⚠️ To retrieve fields marked as deprecated in response schema, please read #operation/localitiesDetails

Link copied to clipboard
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).

Link copied to clipboard
fun localitiesGeocodeAddress(address: String, components: List<String>? = null, language: String? = null, fields: Fields? = null, data: Data? = null, ccFormat: CcFormat? = null): List<LocalitiesGeocodeResponse>?

Geocode a locality or Reverse Geocode a latlng Provides details for an address or a geographic position. Either parameter address or latlng is required.

Link copied to clipboard
fun localitiesGeocodeLatLng(latlng: LatLng, components: List<String>? = null, language: String? = null, fields: Fields? = null, data: Data? = null, ccFormat: CcFormat? = null, listSubBuildings: Boolean? = null): List<LocalitiesGeocodeResponse>?

Geocode a locality or Reverse Geocode a latlng Provides details for an address or a geographic position. Either parameter address or latlng is required.