lib/turf/area.rb
# Takes one or more features and returns their area in square meters.
# @see https://turfjs.org/docs/#area
# @param geojson [GeoJSON] input GeoJSON feature(s)
# @return [number] aria in square meters
Takes one or more features and returns their area in square meters.
Takes one or more features and returns their area in square meters .
def area(geojson)
    geom_reduce(geojson, initial_value: 0) do |value, geom|
      value + area_calculate_area(geom)
    end
  end
def area ( geojson ) geom_reduce ( geojson , initial_value : 0 ) do | value , geom | value + area_calculate_area ( geom ) end end
Takes one or more features and returns their area in square meters.
Takes one or more features and returns their area in square meters .
aria in square meters
aria in square meters
number
geojson
input GeoJSON feature(s)
input GeoJSON feature ( s )
see
None