Loading...
Searching...
No Matches

class is used for storing the route path between the two points on the location. More...

#include <com/navigine/idl/objc/NCRoutePath.h>

Inherits NSObject.

Instance Methods

(nullable NCRoutePath *) - head:
 Returns the leading segment of the route.
 
(nullable NCRoutePath *) - tail:
 Returns the remaining segment of the route.
 

Properties

float length
 Total lenth of the route path in meters.
 
NSArray< NCRouteEvent * > * events
 List of consecutive incoming events RouteEvent.
 
NSArray< NCLocationPoint * > * points
 List of consecutive points. NCLocationPoint.
 

Detailed Description

class is used for storing the route path between the two points on the location.

Referenced from: AsyncRouteListener, AsyncRouteManager, Location, RouteListener, RouteManager

Definition at line 23 of file NCRoutePath.h.

Method Documentation

◆ head:

- (nullable NCRoutePath *) head: (float) advance

Returns the leading segment of the route.

Returns the portion of the route from the start up to the specified advance distance along the route. If advance exceeds the total route length, the entire route is returned.

Parameters
advanceDistance along the route (in meters).
Returns
The covered (passed) segment of the route (from start to advance), or nil if the segment is empty.

◆ tail:

- (nullable NCRoutePath *) tail: (float) advance

Returns the remaining segment of the route.

Returns the portion of the route starting from the specified advance distance to the end of the route. If advance is less than or equal to zero, the entire route is returned.

Parameters
advanceDistance along the route (in meters).
Returns
The remaining segment of the route (from advance to end), or nil if the segment is empty.

Property Documentation

◆ events

- (NSArray<NCRouteEvent *>*) events
readnonatomicassign

List of consecutive incoming events RouteEvent.

Definition at line 59 of file NCRoutePath.h.

◆ length

- (float) length
readnonatomicassign

Total lenth of the route path in meters.

Definition at line 54 of file NCRoutePath.h.

◆ points

- (NSArray<NCLocationPoint *>*) points
readnonatomicassign

List of consecutive points. NCLocationPoint.

Note
points could be on different sublocations if target sublocation is different from the starting one

Definition at line 66 of file NCRoutePath.h.


The documentation for this class was generated from the following file: