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.

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 MapCodeType.International.

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.

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
Link copied to clipboard
Link copied to clipboard
val territory: String? = null
Link copied to clipboard