sdk-search / com.tomtom.online.sdk.search.location / MapCode

MapCode

@PublicPreview("2021.06") data class MapCode : Serializable

A MapCode represents a specific location to within a few meters. Every location on Earth can be represented by a MapCode. MapCodes are designed to be short, easy to recognize, remember, and communicate.

Parameters

type - The type of MapCode.

fullMapCode - The full form of a MapCode (territory + code). It is always unambiguous.

territory - The territory element of the MapCode. The territory element is always in the Latin alphabet. It is empty for an International MapCode.

code - The MapCode without the territory element. It consists of two groups of letters and digits separated by a dot. It is empty for an International MapCode.

Properties

code

val code: String

The MapCode without the territory element. It consists of two groups of letters and digits separated by a dot. It is empty for an International MapCode.

fullMapCode

val fullMapCode: String

The full form of a MapCode (territory + code). It is always unambiguous.

territory

val territory: String

The territory element of the MapCode. The territory element is always in the Latin alphabet. It is empty for an International MapCode.

type

val type: MapCodeType

The type of MapCode.