OpenLocationCode.shortenTrustedFullNoPad

Returns short OpenLocationCode from the full Open Location Code created by removing four or six digits, depending on the provided reference point. It removes as many digits as possible. Assumes this is a full code which isn't padded.

struct OpenLocationCode
pure
shortenTrustedFullNoPad
const nothrow @nogc

Parameters

referenceLatitude
Type: double

Reference point latitude degrees.

referenceLongitude
Type: double

Reference point longitude degrees.

Return Value

A short code if possible or OpenLocationCode.init if it is too far away.

Meta