OsmShortlink

@Serializable(with = OsmShortlinkSerializer::class)
class OsmShortlink(source)

An OpenStreetMap shortlink.

This sibling encoding is not a Geohash. It uses a modified base64 alphabet, carries a zoom, and has no cell hierarchy or neighbor operations.

Types

Link copied to clipboard
object Companion

Factories for valid OsmShortlink values.

Properties

Link copied to clipboard

The two-dimensional area addressed by this shortlink.

Link copied to clipboard

The geometric center of the area addressed by this shortlink.

Link copied to clipboard

The canonical shortlink code without an osm.org/go/ URL.

Link copied to clipboard
val zoom: Int

The OpenStreetMap zoom level encoded by this shortlink.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Returns true when other has the same canonical code.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Returns text.