Package-level declarations

Types

Link copied to clipboard
open class Feature : GeoJsonObject

A Feature object represents a spatially bounded thing. Every Feature object is a GeoJSON object no matter where it occurs in a GeoJSON text.

Link copied to clipboard

A FeatureCollection object has a member with the name "features". The value of "features" is a JSON array. Each element of the array is a Feature object. It is possible for this array to be empty. https://datatracker.ietf.org/doc/html/rfc7946#section-3.3

Link copied to clipboard

A GeoJSON object represents a Geometry, Feature, or collection of Features.

Link copied to clipboard
abstract class Geometry<T> : GeoJsonObject

A Geometry object represents points, curves, and surfaces in coordinate space. Every Geometry object is a GeoJSON object no matter where it occurs in a GeoJSON text.

Link copied to clipboard

Each element in the "geometries" array of a GeometryCollection is one of the Geometry objects LineString, MultiLineString, Polygon, etc:

Link copied to clipboard
object GeoMoshi

Entrypoint for generating Moshi parser with required overrides

Link copied to clipboard
open class LineString : MultiPoint

Coordinates of a LineString are an array of positions

Link copied to clipboard
@JsonClass(generateAdapter = true)
open class LngLatAlt(var longitude: Double = 0.toDouble(), var latitude: Double = 0.toDouble(), var altitude: Double? = null) : Serializable
Link copied to clipboard

Coordinates of a MultiLineString are an array of LineString coordinate arrays:

Link copied to clipboard

Coordinates of a MultiPoint are an array of positions:

Link copied to clipboard

Coordinates of a MultiPolygon are an array of Polygon coordinate arrays:

Link copied to clipboard
open class Point : GeoJsonObject

Point coordinates are in x, y order (easting, northing for projected coordinates, longitude, and latitude for geographic coordinates):

Link copied to clipboard

Coordinates of a Polygon are an array of linear ring coordinate arrays. The first element in the array represents the exterior ring. Any subsequent elements represent interior rings (or holes).