ParsePolygon

public struct ParsePolygon : Codable, Hashable
extension ParsePolygon: CustomDebugStringConvertible
extension ParsePolygon: CustomStringConvertible

ParsePolygon is used to create a polygon that represents the coordinates that may be associated with a key in a ParseObject or used as a reference point for geo queries. This allows proximity-based queries on the key.

  • Create new ParsePolygon instance with coordinates.

    Throws

    An error of type ParseError.

    Declaration

    Swift

    public init(_ coordinates: [ParseGeoPoint]) throws

    Parameters

    coordinates

    An array of geopoints that make the polygon.

  • Create new ParsePolygon instance with a variadic amount of coordinates.

    Throws

    An error of type ParseError.

    Declaration

    Swift

    public init(_ coordinates: ParseGeoPoint...) throws

    Parameters

    coordinates

    variadic amount of zero or more ParseGeoPoint‘s.

  • Determines if a ParsePolygon containes a point.

    Declaration

    Swift

    public func containsPoint(_ point: ParseGeoPoint) -> Bool

    Parameters

    point

    The point to check.

  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws

CustomDebugStringConvertible

  • Declaration

    Swift

    public var debugDescription: String { get }

CustomStringConvertible

  • Declaration

    Swift

    public var description: String { get }