The latitude in signed decimal degrees. It will be clipped to the range -90 to 90.
The longitude in signed decimal degrees. Will be normalised to the range -180 to 180.
OptionalcodeLength: numberThe length of the code to generate. If omitted, the value OpenLocationCode.CODE_PRECISION_NORMAL will be used. For a more precise result, OpenLocationCode.CODE_PRECISION_EXTRA is recommended.
The code.
Encode a location into an Open Location Code.