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)voidsetManeuverInstruction(int type, java.lang.String instruction)Sets short instruction for previously added maneuvervoidsetManeuverTime(double maneuverTime)Sets maneuver time
-
-
-
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
-
setManeuverInstruction
public void setManeuverInstruction(int type, @NonNull java.lang.String instruction)Sets short instruction for previously added maneuver- Parameters:
type- type of instruction to setinstruction- Text to set
-
build
@Nullable public GLRoute build()
Finish building route- Returns:
- route or null if route is invalid
-
-