Package globus.glroute
Class GLRouteManeuver
- java.lang.Object
-
- globus.glmap.GLNativeObject
-
- globus.glroute.GLRouteManeuver
-
@ParametersAreNonnullByDefault public class GLRouteManeuver extends globus.glmap.GLNativeObjectGLMapRouteManeuverholds data for the route manuver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGLRouteManeuver.Type
-
Method Summary
Modifier and Type Method Description globus.glmap.MapPointgetEndPoint()Start point of maneuverdoublegetLength()Maneuver length in metersglobus.glmap.MapPointgetStartPoint()Start point of maneuverjava.lang.String[]getStreetNames()List of street names that are consistent along the entire maneuver.doublegetTime()Estimated time along the maneuver in seconds.intgetType()Type of the maneuver see https://github.com/valhalla/valhalla-docs/blob/master/api-reference.md for detailsjava.lang.StringgetVerbalPostTransitionInstruction()Text suitable for use as a verbal message immediately after the maneuver transition.java.lang.StringgetVerbalPreTransitionInstruction()Text suitable for use as a verbal message immediately prior to the maneuver transition.java.lang.StringgetVerbalTransitionInstruction()Text suitable for use as a verbal alert in a navigation application.
-
-
-
Method Detail
-
getType
public int getType()
Type of the maneuver see https://github.com/valhalla/valhalla-docs/blob/master/api-reference.md for details- Returns:
- type of maneuver
-
getStreetNames
@NonNull public java.lang.String[] getStreetNames()
List of street names that are consistent along the entire maneuver.- Returns:
- array of street names
-
getLength
public double getLength()
Maneuver length in meters- Returns:
- length in meters
-
getTime
public double getTime()
Estimated time along the maneuver in seconds.- Returns:
- time in seconds
-
getVerbalPostTransitionInstruction
@NonNull public java.lang.String getVerbalPostTransitionInstruction()
Text suitable for use as a verbal message immediately after the maneuver transition. For example "Continue on U.S. 2 22 for 3.9 miles".- Returns:
- message after the maneuver transition.
-
getVerbalPreTransitionInstruction
@NonNull public java.lang.String getVerbalPreTransitionInstruction()
Text suitable for use as a verbal message immediately prior to the maneuver transition. For example "Turn right onto North Prince Street, U.S. 2 22".- Returns:
- message prior to the maneuver transition.
-
getVerbalTransitionInstruction
@NonNull public java.lang.String getVerbalTransitionInstruction()
Text suitable for use as a verbal alert in a navigation application. The transition alert instruction will prepare the user for the forthcoming transition. For example: "Turn right onto North Prince Street".- Returns:
- instruction for the transition.
-
getStartPoint
@NonNull public globus.glmap.MapPoint getStartPoint()
Start point of maneuver- Returns:
- start point of maneuver
-
getEndPoint
@NonNull public globus.glmap.MapPoint getEndPoint()
Start point of maneuver- Returns:
- start point of maneuver
-
-