Class GLRouteBuilder

java.lang.Object
globus.glmap.GLNativeObject
globus.glroute.GLRouteBuilder

public class GLRouteBuilder extends GLNativeObject
GLRouteBuilder used construct custom routes.
  • Constructor Details

    • GLRouteBuilder

      public GLRouteBuilder()
      Default constructor
  • Method Details

    • setLanguage

      public void setLanguage(@NonNull String language)
      Parameters:
      language - language of maneuvers instructions
    • addManeuver

      public void addManeuver(int type, @NonNull MapPoint[] points, @Nullable float[] heights)
      Parameters:
      type - type of maneuver
      points - points of maneuver
      heights - 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 String instruction)
      Sets short instruction for previously added maneuver
      Parameters:
      type - type of instruction to set
      instruction - Text to set
    • build

      @Nullable public GLRoute build()
      Finish building route
      Returns:
      route or null if route is invalid