Feature

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.

o  A Feature object has a "type" member with the value "Feature".
o  A Feature object has a member with the name "geometry".  The value
   of the geometry member SHALL be either a Geometry object as
   defined above or, in the case that the Feature is unlocated, a
   JSON null value.
o  A Feature object has a member with the name "properties".  The
   value of the properties member is an object (any JSON object or a
   JSON null value).
o  If a Feature has a commonly used identifier, that identifier
   SHOULD be included as a member of the Feature object with the name
   "id", and the value of this member is either a JSON string or
   number.
 https://datatracker.ietf.org/doc/html/rfc7946#section-3.2

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
@Json(name = "bbox")
var bbox: List<Double>?
Link copied to clipboard

In the (abridged) Feature object shown below

Link copied to clipboard
@Json(name = "geometry")
var geometry: GeoJsonObject
Link copied to clipboard
@Json(name = "id")
var id: String?
Link copied to clipboard
@Json(name = "properties")
var properties: HashMap<String, Any?>?
Link copied to clipboard
@Json(name = "type")
var type: String