@ParametersAreNonnullByDefault
public class GLRouteManeuver
extends com.getyourmap.glmap.GLNativeObject
GLMapRouteManeuver holds data for the route manuver| Modifier and Type | Class and Description |
|---|---|
static interface |
GLRouteManeuver.Type |
| Modifier and Type | Method and Description |
|---|---|
static GLRouteManeuver |
Create(int type,
double duration,
java.lang.String[] streets,
java.lang.String preInstruction,
java.lang.String transitionInstruction,
java.lang.String postInstruction,
int[] points,
GLRouteManeuver previousManeuver)
Initializes custom maneuver
|
com.getyourmap.glmap.MapPoint |
getEndPoint()
Start point of maneuver
|
double |
getLength()
Maneuver length in meters
|
com.getyourmap.glmap.MapPoint |
getStartPoint()
Start point of maneuver
|
java.lang.String[] |
getStreetNames()
List of street names that are consistent along the entire maneuver.
|
double |
getTime()
Estimated time along the maneuver in seconds.
|
int |
getType()
Type of the maneuver see https://github.com/valhalla/valhalla-docs/blob/master/api-reference.md for details
|
java.lang.String |
getVerbalPostTransitionInstruction()
Text suitable for use as a verbal message immediately after the maneuver transition.
|
java.lang.String |
getVerbalPreTransitionInstruction()
Text suitable for use as a verbal message immediately prior to the maneuver transition.
|
java.lang.String |
getVerbalTransitionInstruction()
Text suitable for use as a verbal alert in a navigation application.
|
public static GLRouteManeuver Create(int type, double duration, @Nullable java.lang.String[] streets, @Nullable java.lang.String preInstruction, @Nullable java.lang.String transitionInstruction, @Nullable java.lang.String postInstruction, int[] points, @Nullable GLRouteManeuver previousManeuver)
type - type of maneuverduration - duration of maneuverstreets - street names that are consistent along the entire maneuver.preInstruction - Text suitable for use as a verbal message immediately prior to the maneuver transition.transitionInstruction - Text suitable for use as a verbal alert in a navigation application.postInstruction - Text suitable for use as a verbal message immediately after the maneuver transition.points - points of maneuverpreviousManeuver - previous maneuverpublic int getType()
@NonNull public java.lang.String[] getStreetNames()
public double getLength()
public double getTime()
@NonNull public java.lang.String getVerbalPostTransitionInstruction()
@NonNull public java.lang.String getVerbalPreTransitionInstruction()
@NonNull public java.lang.String getVerbalTransitionInstruction()
@NonNull public com.getyourmap.glmap.MapPoint getStartPoint()
@NonNull public com.getyourmap.glmap.MapPoint getEndPoint()
Copyright © 2018 GetYourMap. All Rights Reserved.