MapTrip SDK Android Manual 9.9.7
RouteComparison Class Reference

If a new Route is received from a server ( NavigationListener.routeUpdate() ), this class enables to identify the differences and use the new route
More...

+ Inheritance diagram for RouteComparison:

Public Member Functions

boolean equals (Object o)
 
Iterable< PolygongetDifferences ()
 
int getDrivingTimeOfOldRoute ()
 
int getDrivingTimeOfUpdatedRoute ()
 
int getLengthOfOldRoute ()
 
int getLengthOfUpdatedRoute ()
 
ApiError useUpdatedRoute ()
 

Detailed Description

Member Function Documentation

◆ equals()

boolean equals ( Object  o)
inherited

◆ getDifferences()

Iterable< Polygon > getDifferences ( )

Returns
a polygon iterator that contains polygons of map coordinates where the differences are located The map can zoom to the polygon by the call the Mapviewer.zoomToExtend()

◆ getDrivingTimeOfOldRoute()

int getDrivingTimeOfOldRoute ( )

Returns
the driving time of the old route in seconds

◆ getDrivingTimeOfUpdatedRoute()

int getDrivingTimeOfUpdatedRoute ( )

Returns
the driving time of the new route in seconds

◆ getLengthOfOldRoute()

int getLengthOfOldRoute ( )

Returns
the length of the old route in meters

◆ getLengthOfUpdatedRoute()

int getLengthOfUpdatedRoute ( )

Returns
the length of the new route in meters

◆ useUpdatedRoute()

ApiError useUpdatedRoute ( )

Use the updated route for navigation

Returns
Errorcode

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