Route
Collection of maneuvers and roadElements connecting two or more waypoints. Waypoints may be thought of as the input to a route calculation whereas maneuvers are the results of calculating a route.
Note: Parceled Route object is valid only if the original route object is also valid.
Properties
Functions
Returns list of GeoPolylines representing route segments
Returns a list of {@link RouteElement} objects for current route object from start. The elements are generated asynchronously and returned via callback. The callback will be called on provided executor or on main thread if null. Note: This array doesn't change while navigating.
Returns geometry with altitude of route. Geometry is generated asynchronously and callback is then called on provided executor with results.
Returns a list of {@link RouteWarning} warnings, which occurred during route calculation.
Retrieves list of countries route is passing by with regions, if available
Serialize the route to a JSON string. Brief serialization is to be used with {@link Router#computeRouteFromJSONString(String, RouteComputeListener, Executor)}. Only waypoints and routing options are saved, so route has to be computed again.
Serialize the route to a JSON string. Full serialization is to be used with {@link Route#deserializeFromFullJSON(String)}. All of route info is saved, so no computing is needed.