NamedPolygon

public struct NamedPolygon

Describes an area that is reachable by vehicle.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Initialize the named range from a name and a polygon.

    Declaration

    Swift

    public init(name: String, boundary: [CLLocationCoordinate2D])

    Parameters

    name

    Name of the polygon, used to determine the styling for the range.

    boundary

    A list of points representing a polygon boundary. Points in the list must be in counterclockwise order. Polygon boundary must be closed, meaning the last point matches the first point.

Public

  • Name of the polygon, used to determine the styling for the range.

    Declaration

    Swift

    public let name: String
  • A list of points representing a polygon boundary. Points in the list must be in counterclockwise order. Polygon boundary must be closed, meaning the last point matches the first point.

    Declaration

    Swift

    public let boundary: [CLLocationCoordinate2D]