lib/turf/helpers.rb
# Creates a Feature based on a coordinate array. Properties can be added optionally.
# @param coordinates [Array<Array<number>>] an array of Positions
# @param properties [Hash] a Hash of key-value pairs to add as properties
# @param bbox [Array<number>] Bounding Box Array [west, south, east, north] associated with the Feature
# @param id [string|number] Identifier associated with the Feature
# @return [Feature<MultiPoint>] a MultiPoint feature
Creates a Feature based on a coordinate array. Properties can be added optionally.
Creates a Feature based on a coordinate array . Properties can be added optionally .
def multi_point(coordinates, properties: {}, bbox: nil, id: nil)
    geom = {
      type: "MultiPoint",
      coordinates: coordinates
    }
    feature(geom, properties: properties, bbox: bbox, id: id)
  end
def multi_point ( coordinates , properties : { } , bbox : nil , id : nil ) geom = { type : "MultiPoint" , coordinates : coordinates } feature ( geom , properties : properties , bbox : bbox , id : id ) end
Creates a Feature based on a coordinate array.
Creates a Feature based on a coordinate array .
a MultiPoint feature
a MultiPoint feature
Feature<MultiPoint>
coordinates
an array of Positions
an array of Positions
properties
a Hash of key-value pairs to add as properties
a Hash of key - value pairs to add as properties
bbox
Bounding Box Array [west, south, east, north] associated with the Feature
Bounding Box Array [ west south east north ] associated with the Feature
id
Identifier associated with the Feature
Identifier associated with the Feature