OpenLocationCode.encode

Creates Open Location Code.

  1. OpenLocationCode encode(double latitude, double longitude, int codeLength)
    struct OpenLocationCode
    pure static nothrow
    encode
  2. ubyte[] encode(ubyte[] buffer, double latitude, double longitude, int codeLength)

Parameters

latitude double

The latitude in decimal degrees.

longitude double

The longitude in decimal degrees.

codeLength int

The desired number of digits in the code. Defaults to the default precision. Must be a valid code length, otherwise contract violation = assertion error.

Meta