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
latitude
coordinate
longitude
coordinate
Return Value
new SPGeofencePoint instance
-
Declaration
Objective-C
- (CLLocationCoordinate2D)coordinate;
Swift
func coordinate() -> CLLocationCoordinate2D
Return Value
coordinate for point