Use Swift-friendly Geometry Utilities
mainThe Google Maps SDK for iOS provides GMSGeometryUtils as a set of C-style functions. This utility library provides Swift-friendly extensions and classes that wrap those functions, allowing you to use idiomatic Swift syntax instead of C-style calls.
Key components include:
MapPoint: A Swift class for representing points.- Extensions for
CLLocationCoordinate2D,GMSPath,GMSPolygon, andGMSPolylineto provide geometric operations directly on these types.