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:isAccessible:
This method compute the quicket path between two SITIndoorPoints of a building.
- (SITIndoorRoute *)shortestRouteFromIndoorPoint:(SITIndoorPoint *)sourcePoint toIndoorPoint:(SITIndoorPoint *)destinationPoint isAccessible:(BOOL)isAccessible
Parameters
sourcePoint |
source SITIndoorPoint. |
---|---|
destinationPoint |
destination SITIndoorPoint. |
isAccessible |
determines if the route should be computed having into account accessible alternatives |
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