W3WSquare Structure Reference
- Last UpdatedJun 10, 2025
- 1 minute read
public struct W3WSquare : Hashable
Contains information about one of the squares in the what3words geocode system.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
A 3-by-3-metre square defined by the what3words geocode system.
Declaration
Swift
public var square: GeoBox
-
The center of the square.
Declaration
Swift
public var coordinates: GeoCoordinates
-
3 word address of the square, for example “///wage.mere.heap”.
Declaration
Swift
public var words: String
-
The language code of the words as an ISO 639-1 2 letter code. Each supported language has its own set of words for each of the squares in the what3words geocode system. For Bosnian-Croatian-Montenegrin-Serbian, a special code “oo” is used.
Declaration
Swift
public var languageCode: String
-
Country that contains the square. Not set if the square is in an area not governed by a specific country, such as international waters, Antarctica, some uninhabited islands etc.
Declaration
Swift
public var countryCode: String?
-
Creates a new instance.
Declaration
Swift
public init(square: GeoBox, coordinates: GeoCoordinates, words: String, languageCode: String, countryCode: String? = nil)