of

fun of(position: Position, length: Int): Geohash(source)

Returns the cell of the given length that contains position.

Longitude must be in -180.0..180.0, latitude must be in -90.0..90.0, and both values must be finite. Altitude is ignored.

Throws

if the length or coordinate is invalid.