class GeoJSON::Feature

Overview

https://tools.ietf.org/html/rfc7946#section-3.2

Defined in:

geojson/feature.cr

Constructors

Instance Method Summary

Instance methods inherited from class GeoJSON::Object

bbox : Array(Float64) | Nil bbox, type : String type

Constructor methods inherited from class GeoJSON::Object

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(pull : JSON::PullParser) #

https://tools.ietf.org/html/rfc7946#section-3.2


[View source]
def self.new(geometry : GeoJSON::Object | Nil, properties : Nil | Hash(String, Array(JSON::Any) | Bool | Float64 | Hash(String, JSON::Any) | Int64 | String | Nil) = nil, *, id : Int32 | String | Nil = nil, bbox = nil) #

[View source]

Instance Method Detail

def geometry : GeoJSON::Object::Type | Nil #

[View source]
def id : String | Int32 | Nil #

[View source]
def properties : Hash(String, JSON::Any::Type) | Nil #

[View source]
def type : String #

[View source]