SITPoint Class Reference
Inherits from | NSObject |
---|---|
Declared in | SITPoint.h |
Overview
Associate geographical coordinate (Location) with Building and Floor (Cartography) and cartesian coordinate relative to that building.
buildingIdentifier
Unique identifier of the SITBuilding.
@property (nonatomic, strong) NSString *buildingIdentifier
Declared In
SITPoint.h
floorIdentifier
Unique identifier of the SITFloor.
@property (nonatomic, strong) NSString *floorIdentifier
Declared In
SITPoint.h
cartesianCoordinate
Returns cartesian coordinate (in meters) relative to the bounds of building’s base.
@property (nonatomic, strong) SITCartesianCoordinate *cartesianCoordinate
Declared In
SITPoint.h
name
Name associated with the point (can be nil).
@property (nonatomic, strong) NSString *name
Declared In
SITPoint.h
– isIndoor
Check if the point refers to an indoor position.
- (BOOL)isIndoor
Return Value
BOOL value that indicates if the point is indoor (YES) or not (NO).
Declared In
SITPoint.h
– isOutdoor
Check if the point refers to an outdoor position.
- (BOOL)isOutdoor
Return Value
BOOL value that indicates if the point is outdoor (YES) or not (NO).
Declared In
SITPoint.h
– distanceToPoint:
Compute the horizontal distance between two points.
- (float)distanceToPoint:(SITPoint *)point
Parameters
point |
the point to compute the distance to. |
---|
Return Value
distance between points (in meters).
Declared In
SITPoint.h
– initWithCoordinate:buildingIdentifier:floorIdentifier:cartesianCoordinate:
Create an indoor point
- (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate buildingIdentifier:(NSString *)buildingIdentifier floorIdentifier:(NSString *)floorIdentifier cartesianCoordinate:(SITCartesianCoordinate *)cartesianCoordinate
Parameters
coordinate |
Geographical coordinate of the point |
---|---|
buildingIdentifier |
unique identifier of the building |
floorIdentifier |
unique identifier of the floor |
cartesianCoordinate |
coordinate in cartesian coordinate system |
Return Value
initialized indoor point
Declared In
SITPoint.h
– initWithCoordinate:buildingIdentifier:
Create an outdoor point
- (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate buildingIdentifier:(NSString *)buildingIdentifier
Parameters
coordinate |
Geographical coordinate of the point |
---|---|
buildingIdentifier |
unique identifier of the building |
Return Value
initialized outdoor point
Declared In
SITPoint.h
– initWihtCoordinate:
Create an outdoor point with a coordinate
- (instancetype)initWihtCoordinate:(CLLocationCoordinate2D)coordinate
Parameters
coordinate |
Geographical coordinate of the point |
---|
Return Value
initialized point
Declared In
SITPoint.h
– initWithBuilding:floorIdentifier:cartesianCoordinate:
Create a point placed indoors. The geographical coordinate is calculated using the building
- (instancetype)initWithBuilding:(SITBuilding *)building floorIdentifier:(NSString *)floorIdentifier cartesianCoordinate:(SITCartesianCoordinate *)cartesianCoordinate
Parameters
building |
Building |
---|---|
floorIdentifier |
unique identifier of the floor |
cartesianCoordinate |
coordinate in cartesian coordinate system |
Return Value
initialized point
Declared In
SITPoint.h
– coordinate
Geographical coordinate
- (CLLocationCoordinate2D)coordinate
Return Value
CLLocationCoordinate2D struct
Declared In
SITPoint.h