Package-level declarations

Contains models data classes for Localities API.

Types

Link copied to clipboard
data class AddressComponentsInner(val longName: StringOrStringArray? = null, val shortName: StringOrStringArray? = null, val types: List<String>? = null)

The address component object

Link copied to clipboard

enum for parameter ccFormat

Link copied to clipboard
enum Data : Enum<Data>

enum for parameter Data

Link copied to clipboard

enum for parameter extended

Link copied to clipboard
enum Fields : Enum<Fields>

enum for parameter fields

Link copied to clipboard
data class LocalitiesAddressGeometry(val locationType: LocalitiesAddressGeometry.LocationType? = null, val location: LatLng? = null, val viewport: LatLngBounds? = null)

The location of the result, in latitude and longitude. Accuracy is also provided.

Link copied to clipboard

Localities Collection Response containing Localities

Link copied to clipboard
data class LocalitiesAutocompleteMatchedFields(val description: List<MatchedSubstring>? = null, val name: List<MatchedSubstring>? = null, val admin0: List<MatchedSubstring>? = null, val admin1: List<MatchedSubstring>? = null, val admin2: List<MatchedSubstring>? = null, val postalTown: List<MatchedSubstring>? = null)

Contains a set of substrings for each field (description, name, admin_0, admin_1, admin_2, postal_town) that match elements in the input. It can be used to highlight those substrings. Each substring is identified by an offset and a length.`

Link copied to clipboard
data class LocalitiesAutocompleteResponse(val publicId: String, val type: LocalitiesTypes, val description: String, val matchedSubstrings: LocalitiesAutocompleteMatchedFields, val hasAddresses: Boolean)

Attributes describing a locality. Not all attributes will be available for all locality types.

Link copied to clipboard
data class LocalitiesDetailsResponseResult(val formattedAddress: String, val types: List<LocalitiesTypes>, val publicId: String, val geometry: LocalitiesDetailsResponseResultGeometry, val addressComponents: List<AddressComponentsInner>, val status: LocalitiesStatus? = null, val name: String? = null, val addresses: LocalitiesDetailsResponseResultAddresses? = null)

The Root Node for Localities Details

Link copied to clipboard

UK Only. List of addresses attached to this Postal Code.

data class LocalitiesDetailsResponseResultAddressesListInner(val description: String, val publicId: String)
Link copied to clipboard
data class LocalitiesDetailsResponseResultGeometry(val location: LatLng, val viewport: LatLngBounds? = null)

The location of the PostalCode, in latitude and longitude, eventually associated with a Viewport.

Link copied to clipboard

Localities Geocode Collection Response. Contains one or more detailed Localities or Addresses in FR or in the UK, with coordinates (default to one result for reverse geocoding)

Link copied to clipboard
data class LocalitiesGeocodeResponse(val formattedAddress: String? = null, val types: List<LocalitiesGeocodeTypes>? = null, val geometry: LocalitiesAddressGeometry? = null, val status: LocalitiesStatus? = null, val addressComponents: List<AddressComponentsInner>? = null, val subBuildings: List<LocalitiesAddressSummary>? = null)

Attributes describing a locality. Not all attributes will be available for all locality types.

Link copied to clipboard

Contains the type of the geocoded suggestion.

Link copied to clipboard

This optional field is only available for UK addresses referenced as not yey built by Royal Mail. Only one value yet.

Link copied to clipboard

Contains the type of the localities suggestion.