NTRoutingResult


@interface NTRoutingResult : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

A class that defines list of routing actions and path geometry.

  • Checks if this object is equal to the specified object.

    Declaration

    Objective-C

    - (BOOL)isEqual:(id)object;

    Parameters

    object

    The reference object.

    Return Value

    True when objects are equal, false otherwise.

  • Returns the hash value of this object.

    Declaration

    Objective-C

    - (NSUInteger)hash;

    Return Value

    The hash value of this object.

  • Constructs a new RoutingResult instance from projection, points and instructions.

    Declaration

    Objective-C

    - (id)initWithProjection:(NTProjection *)projection
                      points:(NTMapPosVector *)points
                instructions:(NTRoutingInstructionVector *)instructions;

    Parameters

    projection

    The projection of the routing result (same as the request).

    points

    The point list defining the routing path. Instructions refer to this list.

    instructions

    The turn-by-turn instruction list.

  • Returns the projection of the points in the result.

    Declaration

    Objective-C

    - (NTProjection *)getProjection;

    Return Value

    The projection of the result.

  • Returns the point list of the result. The list contains all the points the route must pass in correct order.

    Declaration

    Objective-C

    - (NTMapPosVector *)getPoints;

    Return Value

    The point list of the path.

  • Returns the turn-by-turn instruction list.

    Declaration

    Objective-C

    - (NTRoutingInstructionVector *)getInstructions;

    Return Value

    The turn-by-turn instruction list.

  • Returns the total distance of the path.

    Declaration

    Objective-C

    - (double)getTotalDistance;

    Return Value

    The total distance in meters.

  • Returns the approximate total duration of the path.

    Declaration

    Objective-C

    - (double)getTotalTime;

    Return Value

    The total duration in seconds.

  • Creates a string representation of this result object, useful for logging.

    Declaration

    Objective-C

    - (NSString *)description;

    Return Value

    The string representation of this result object.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;