SITGraph Class Reference
Inherits from | NSObject |
---|---|
Declared in | SITGraph.h |
Overview
This model describes a graph representation of the paths of a building where a user can walk.
– shortestRouteFromIndoorPoint:toIndoorPoint:accessibility:
This method compute the quicket path between two SITIndoorPoints of a building.
- (SITIndoorRoute *)shortestRouteFromIndoorPoint:(SITIndoorPoint *)sourcePoint toIndoorPoint:(SITIndoorPoint *)destinationPoint accessibility:(SITAccessibilityMode)accessibility
Parameters
sourcePoint |
source SITIndoorPoint. |
---|---|
destinationPoint |
destination SITIndoorPoint. |
accessibility |
determines the accessibility options that should be taken into account. See SITAccessibility for more information |
Return Value
A SITIndoorRoute object containing the points and the distance between them to travel from the source point to the destination point. This method can return nil if either sourcePoint or destinationPoint does not belong to the building. NOTE: This method is executed on the same thread the is called. It can be an expensive operation so you should perform it outside the main thread to avoid UI related issues.
Declared In
SITGraph.h