Address

data class Address(val name: String?, val country: String?, val city: String?, val zip: String?, val road: String?, val houseNum: String?, val location: GeoPoint?, val isPOI: Boolean = false, val POIClassID: Long = 0, val POILocation: GeoPoint?, val phoneNumber: String? = null, val id: String? = null)

This class defines a Postal Address of a place.

Parameters

name

human readable name of the place

country

country where the place is located

city

city where the place is located

zip

zip-code of the address

road

road/street name of the address

houseNum

number of the house connected to given address

location

map-matched coordinates of the place

isPOI

indicates if the address is a POI. In that case, the name is the name of the POI.

POIClassID

the class ID of the POI. If the Address is not a POI, its value is 0.

phoneNumber

an optional phone number if the address is a POI.

POILocation

coordinates of the POI (may be different from the postal address location)

id

the custom ID of the POI, if any, and if the Address is a POI.

Constructors

Link copied to clipboard
constructor(name: String?, country: String?, city: String?, zip: String?, road: String?, houseNum: String?, location: GeoPoint?, isPOI: Boolean = false, POIClassID: Long = 0, POILocation: GeoPoint?, phoneNumber: String? = null, id: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val city: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: String? = null
Link copied to clipboard
val isPOI: Boolean = false
Link copied to clipboard
Link copied to clipboard
val name: String?
Link copied to clipboard
val phoneNumber: String? = null
Link copied to clipboard
val POIClassID: Long = 0
Link copied to clipboard
Link copied to clipboard
val road: String?
Link copied to clipboard
val zip: String?

Functions

Link copied to clipboard

Builds the address name using houseNum, road, zip, city