OpenLocationCode.fromString

Creates Open Location Code object for the provided code.

struct OpenLocationCode
pure static
fromString
(
string code
)

Parameters

code
Type: string

A valid OLC code. Can be a full code or a shortened code.

Throws

OLCFormatException when the passed code is not valid.

Meta