Package globus.glroute
Class GLRouteBuilder
java.lang.Object
globus.glmap.GLNativeObject
globus.glroute.GLRouteBuilder
public class GLRouteBuilder
extends globus.glmap.GLNativeObject
GLRouteBuilder used construct custom routes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddManeuver(int type, globus.glmap.MapPoint[] points, float[] heights) build()Finish building routevoidsetLanguage(String language) voidsetManeuverInstruction(int type, String instruction) Sets short instruction for previously added maneuvervoidsetManeuverTime(double maneuverTime) Sets maneuver timeMethods inherited from class globus.glmap.GLNativeObject
dispose
-
Constructor Details
-
GLRouteBuilder
public GLRouteBuilder()Default constructor
-
-
Method Details
-
setLanguage
- 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
Sets short instruction for previously added maneuver- Parameters:
type- type of instruction to setinstruction- Text to set
-
build
Finish building route- Returns:
- route or null if route is invalid
-