MapCode

data class MapCode(val type: MapCodeType, val fullMapCode: String, val territory: String? = null, val code: String? = null)

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

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
fun MapCode(type: MapCodeType, fullMapCode: String, territory: String? = null, code: String? = null)

Properties

Link copied to clipboard
val code: String? = null

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.

Link copied to clipboard

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

Link copied to clipboard
val territory: String? = null

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

Link copied to clipboard

The type of MapCode.