GoogleMaps Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSGeometryArea
extern double GMSGeometryArea(GMSPath *_Nonnull path)
Returns the area of a geodesic polygon defined by path
on Earth.
The “inside” of the polygon is defined as not containing the South pole.
If path
is not closed, it is implicitly treated as a closed path nevertheless and the result is
the same.
All coordinates of the path must be valid.
The polygon must be simple (not self-overlapping) and may be concave.
If any segment of the path is a pair of antipodal points, the result is undefined – because two
antipodal points do not form a unique great circle segment on the sphere.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[],["This function, `GMSGeometryArea`, calculates the area of a geodesic polygon on Earth defined by a given path. The polygon's interior is considered to exclude the South Pole. The input path is treated as closed even if it isn't. The polygon must be simple (non-self-intersecting), and all coordinates in the path must be valid. If the path contains antipodal points, the result is undefined. Concave polygons are acceptable.\n"],null,[]]