Place

class Place(val coordinates: Coordinates, val name: String?, val street: String?, val isoCountryCode: String?, val country: String?, val postalCode: String?, val administrativeArea: String?, val subAdministrativeArea: String?, val locality: String?, val subLocality: String?, val thoroughfare: String?, val subThoroughfare: String?)

Represents a place on Earth.

The geocoder might not always return all of these properties, so you must check each one before using it.

Constructors

Link copied to clipboard
constructor(coordinates: Coordinates, name: String?, street: String?, isoCountryCode: String?, country: String?, postalCode: String?, administrativeArea: String?, subAdministrativeArea: String?, locality: String?, subLocality: String?, thoroughfare: String?, subThoroughfare: String?)

Properties

Link copied to clipboard

The administrative area of the place.

Link copied to clipboard

The geographic coordinates of the place.

Link copied to clipboard

The country of the place.

Link copied to clipboard

Get the first non-null value of the place.

Link copied to clipboard

Check if all of the properties are null.

Link copied to clipboard

The ISO country code of the place.

Link copied to clipboard

The locality of the place.

Link copied to clipboard
val name: String?

The name of the place.

Link copied to clipboard

The postal code of the place.

Link copied to clipboard

The street of the place.

Link copied to clipboard

The sub-administrative area of the place.

Link copied to clipboard

The sub-locality of the place.

Link copied to clipboard

The sub-thoroughfare of the place.

Link copied to clipboard

The thoroughfare of the place.