lib/turf/helpers.rb
def point(coordinates, properties: {}, id: nil, bbox: nil)
    geom = {
      type: "Point",
      coordinates: coordinates
    }
    feature(geom, properties: properties, id: id, bbox: bbox)
  end
# Creates a Point Feature from a Position.
# @see https://turfjs.org/docs/#point
# @param coordinates [Array<number>] longitude, latitude position (each in decimal degrees)
# @param properties [Hash] an 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<Point>] a Point feature
Creates a Point Feature from a Position.
Creates a Point Feature from a Position .
def point(coordinates, properties: {}, id: nil, bbox: nil)
    geom = {
      type: "Point",
      coordinates: coordinates
    }
    feature(geom, properties: properties, id: id, bbox: bbox)
  end
def point ( coordinates , properties : { } , id : nil , bbox : nil ) geom = { type : "Point" , coordinates : coordinates } feature ( geom , properties : properties , id : id , bbox : bbox ) end
Creates a Point Feature from a Position.
Creates a Point Feature from a Position .
a Point feature
a Point feature
Feature<Point>
coordinates
longitude, latitude position (each in decimal degrees)
longitude latitude position ( each in decimal degrees )
properties
an Hash of key-value pairs to add as properties
an Hash of key - value pairs to add as properties
id
Identifier associated with the Feature
Identifier associated with the Feature
bbox
Bounding Box Array [west, south, east, north] associated with the Feature
Bounding Box Array [ west south east north ] associated with the Feature
see
None