class

GeoJSON::FeatureCollection

Inherits GeoJSON::Object < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

A FeatureCollection represents a GeoJSON FeatureCollection object and contains one or more Features.

Constructors

new(pull : JSON::PullParser)

A FeatureCollection represents a GeoJSON FeatureCollection object and contains one or more Features.

Source
new(features : Array(Feature), *, bbox = nil)

Creates a new FeatureCollection with the given features.

Source

Instance methods

bbox

Calculates the bounding box for any GeoJSON object, including FeatureCollection.

Source
features

Returns this FeatureCollections array of features.

Source
type

Gets this FeatureCollection's GeoJSON type ("FeatureCollection")

Source