Package globus.glroute
Class GLRouteBuilder
- java.lang.Object
-
- globus.glmap.GLNativeObject
-
- globus.glroute.GLRouteBuilder
-
public class GLRouteBuilder extends globus.glmap.GLNativeObjectGLRouteBuilderused construct custom routes.
-
-
Constructor Summary
Constructors Constructor Description GLRouteBuilder()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddManeuver(int type, globus.glmap.MapPoint[] points, float[] heights)GLRoutebuild()Finish building routevoidsetLanguage(java.lang.String language)voidsetManeuverPostInstruction(java.lang.String postInstruction)voidsetManeuverPreInstruction(java.lang.String preInstruction)voidsetManeuverStreets(java.lang.String[] maneuverStreets)voidsetManeuverTime(double maneuverTime)Sets maneuver timevoidsetManeuverTransitionInstruction(java.lang.String transitionInstruction)
-
-
-
Method Detail
-
setLanguage
public void setLanguage(@NonNull java.lang.String language)- Parameters:
language- language of maneuvers instructions
-
addManeuver
public void addManeuver(int type, @NonNull globus.glmap.MapPoint[] points, @Nullable float[] heights)- Parameters:
type- type of maneuverpoints- points of maneuverheights- optional heights in points
-
setManeuverTime
public void setManeuverTime(double maneuverTime)
Sets maneuver time- Parameters:
maneuverTime- value to set
-
setManeuverStreets
public void setManeuverStreets(@NonNull java.lang.String[] maneuverStreets)- Parameters:
maneuverStreets- street names that are consistent along the entire maneuver.
-
setManeuverPreInstruction
public void setManeuverPreInstruction(@NonNull java.lang.String preInstruction)- Parameters:
preInstruction- Text suitable for use as a verbal message immediately prior to the maneuver transition.
-
setManeuverTransitionInstruction
public void setManeuverTransitionInstruction(@NonNull java.lang.String transitionInstruction)- Parameters:
transitionInstruction- Text suitable for use as a verbal alert in a navigation application.
-
setManeuverPostInstruction
public void setManeuverPostInstruction(@NonNull java.lang.String postInstruction)- Parameters:
postInstruction- Text suitable for use as a verbal message immediately after the maneuver transition.
-
build
@Nullable public GLRoute build()
Finish building route- Returns:
- route or null if route is invalid
-
-