sdk-search / com.tomtom.online.sdk.search.data.common / MapCode

MapCode

open 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.

Constructors

<init>

MapCode()

Empty constructor for the MapCode.

MapCode(type: MapCodeType!, fullMapcode: String!, territory: String!, code: String!)

Default constructor for the MapCode.

Properties

code

var code: String!

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

fullMapcode

var fullMapcode: String!

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

territory

var territory: String!

The territory element of the mapcode. The territory element is always in the Latin alphabet. Is it empty for an International mapcode.

type

var type: MapCodeType!

The type of mapcode.

Functions

getCode

open fun getCode(): String!

Returns 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.

getFullMapcode

open fun getFullMapcode(): String!

Returns the full form of a mapcode (territory + code). It is always unambiguous.

getTerritory

open fun getTerritory(): String!

Returns the territory element of the mapcode. The territory element is always in the Latin alphabet. Is it empty for an International mapcode.

getType

open fun getType(): MapCodeType!

Returns the type of mapcode.

toString

open fun toString(): String