public class GLMapRouteManeuver
extends java.lang.Object
GLMapRouteManeuver holds data for the route manuver| Modifier and Type | Class and Description |
|---|---|
static interface |
GLMapRouteManeuver.Type |
| Modifier and Type | Method and Description |
|---|---|
static GLMapRouteManeuver |
Create(int type,
double duration,
java.lang.String[] streets,
java.lang.String preInstruction,
java.lang.String transitionInstruction,
java.lang.String postInstruction,
int[] points,
GLMapRouteManeuver previousManeuver)
Initializes custom maneuver
|
void |
dispose() |
MapPoint |
getEndPoint()
Start point of maneuver
|
double |
getLength()
Maneuver length in meters
|
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 GLMapRouteManeuver Create(int type, double duration, java.lang.String[] streets, java.lang.String preInstruction, java.lang.String transitionInstruction, java.lang.String postInstruction, int[] points, GLMapRouteManeuver 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()
public java.lang.String[] getStreetNames()
public double getLength()
public double getTime()
public java.lang.String getVerbalPostTransitionInstruction()
public java.lang.String getVerbalPreTransitionInstruction()
public java.lang.String getVerbalTransitionInstruction()
public MapPoint getStartPoint()
public MapPoint getEndPoint()
public void dispose()
Copyright © 2017 GetYourMap. All Rights Reserved.