Skip to content

Commit

Permalink
update area
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Apr 30, 2024
1 parent 532852c commit 316468e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geo/polygon.cr
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ module Geo
@coords
end

# Return the approximate signed geodesic area of the polygon in square meters.
def area
# Return the approximate signed geodesic area of the polygon.
def area : RingArea::Area
coordinates = @coords.map { |coord| [coord.lng, coord.lat] }

RingArea.ring_area(coordinates)
Expand Down

0 comments on commit 316468e

Please sign in to comment.