Package globus.glroute
Class GLRouteBuilder
java.lang.Object
globus.glmap.GLNativeObject
globus.glroute.GLRouteBuilder
GLRouteBuilder
used construct custom routes.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addManeuver
(int type, MapPoint[] points, float[] heights) build()
Finish building routevoid
setLanguage
(String language) void
setManeuverInstruction
(int type, String instruction) Sets short instruction for previously added maneuvervoid
setManeuverTime
(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
- 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
-