public class Route
extends java.lang.Object
implements java.io.Serializable
Describes a path between two points.
| Modifier and Type | Class and Description |
|---|---|
static class |
Route.AutoAdvanceInfo |
| Constructor and Description |
|---|
Route() |
| Modifier and Type | Method and Description |
|---|---|
static Route |
fromJSONObject(org.json.JSONObject json,
EditorKey appKey,
DirectionsSource.MapPoint originPoint,
DirectionsDestination.MapPoint destination) |
Route.AutoAdvanceInfo |
getAutoAdvanceInfo(MeridianLocation location,
MapInfo currentMap) |
float |
getDistance() |
double |
getExpectedTravelTime() |
int[] |
getIndexesForStep(RouteStep step) |
static int[] |
getIndexesForStepInRoute(RouteStep step,
Route route) |
Placemark |
getNearestPlacemarkToDestination() |
Placemark |
getNearestPlacemarkToOrigin() |
float[] |
getPointsFor(EditorKey mapKey) |
float[][] |
getSegmentedPointsFor(EditorKey mapKey) |
java.util.List<RouteStep> |
getSteps() |
java.util.List<RouteStep> |
getStepsForMapKey(EditorKey mapKey) |
TransportType |
getTransportType() |
public static Route fromJSONObject(org.json.JSONObject json, EditorKey appKey, DirectionsSource.MapPoint originPoint, DirectionsDestination.MapPoint destination) throws org.json.JSONException
org.json.JSONExceptionpublic java.util.List<RouteStep> getSteps()
public float[] getPointsFor(EditorKey mapKey)
public float[][] getSegmentedPointsFor(@NonNull
EditorKey mapKey)
public int[] getIndexesForStep(RouteStep step)
public Route.AutoAdvanceInfo getAutoAdvanceInfo(MeridianLocation location, MapInfo currentMap)
public float getDistance()
public double getExpectedTravelTime()
public TransportType getTransportType()
public Placemark getNearestPlacemarkToDestination()
public Placemark getNearestPlacemarkToOrigin()