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) |
DirectionsDestination.MapPoint |
getDestinationInfo() |
EditorKey |
getDestinationMap() |
float |
getDistance() |
double |
getExpectedTravelTime() |
int[] |
getIndexesForStep(RouteStep step) |
static int[] |
getIndexesForStepInRoute(RouteStep step,
Route route) |
Placemark |
getNearestPlacemarkToDestination() |
Placemark |
getNearestPlacemarkToOrigin() |
DirectionsSource.MapPoint |
getOriginInfo() |
float[] |
getPointsFor(EditorKey mapKey) |
float[][] |
getSegmentedPointsFor(EditorKey mapKey) |
EditorKey |
getSourceMap() |
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.JSONException
public 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 EditorKey getSourceMap()
public EditorKey getDestinationMap()
public double getExpectedTravelTime()
public TransportType getTransportType()
public Placemark getNearestPlacemarkToDestination()
public Placemark getNearestPlacemarkToOrigin()
public DirectionsSource.MapPoint getOriginInfo()
public DirectionsDestination.MapPoint getDestinationInfo()