public class Route extends Object implements 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(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) |
List<RouteStep> |
getSteps() |
List<RouteStep> |
getStepsForMapKey(EditorKey mapKey) |
TransportType |
getTransportType() |
public static Route fromJSONObject(JSONObject json, EditorKey appKey, DirectionsSource.MapPoint originPoint, DirectionsDestination.MapPoint destination) throws JSONException
JSONException
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()