Thrown in methods validating a user input string code.
Returns if the code is a valid full Open Location Code.
Does the same as isFullCode, assuming the code is already uppercase, making this @nogc nothrow.
Returns if the code is a valid short Open Location Code.
Does the same as isShortCode, assuming the code is already uppercase, making this @nogc nothrow.
Returns whether the provided string is a valid Open Location code.
Returns whether the provided code length
Same as isValidCode but doesn't convert the code to uppercase before handling, thus failing validation when using lowercase characters.
Provides a normal precision code, approximately 14x14 meters.
The max number of digits to process in a plus code.
The max number of characters in an open location code. This is the max number of digits plus a separator character.
The character used to pad codes.
A separator used to break the code into two parts to aid memorability.
The character set used to encode the values.
Represents an open location code.
Coordinates of a decoded Open Location Code.
Convert locations to and from convenient short codes.
Open Location Codes are short, ~10 character codes that can be used instead of street addresses. The codes can be generated and decoded offline, and use a reduced character set that minimises the chance of codes including words.
Ported from the Java interface.
@author Jiri Semecky @author Doug Rinckes @author Jan Jurzitza