SPGeofencePoint
Objective-C
@interface SPGeofencePoint : NSObject
Swift
class SPGeofencePoint : NSObject
Defines a single point in a Geofence. Used to generate SPGeofencePolygon objects.
-
Recommended constructor for creating SPGeofencePoint objects
Declaration
Objective-C
- (nonnull instancetype)initWithLatitude:(CGFloat)latitude longitude:(CGFloat)longitude;Swift
init(latitude: CGFloat, longitude: CGFloat)Parameters
latitudecoordinate
longitudecoordinate
Return Value
new SPGeofencePoint instance
-
Declaration
Objective-C
- (CLLocationCoordinate2D)coordinate;Swift
func coordinate() -> CLLocationCoordinate2DReturn Value
coordinate for point
SPGeofencePoint Class Reference