Class GLRouteBuilder


  • public class GLRouteBuilder
    extends globus.glmap.GLNativeObject
    GLRouteBuilder used construct custom routes.
    • Constructor Summary

      Constructors 
      Constructor Description
      GLRouteBuilder()
      Default constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addManeuver​(int type, globus.glmap.MapPoint[] points, float[] heights)  
      GLRoute build()
      Finish building route
      void setLanguage​(java.lang.String language)  
      void setManeuverInstruction​(int type, java.lang.String instruction)
      Sets short instruction for previously added maneuver
      void setManeuverTime​(double maneuverTime)
      Sets maneuver time
      • Methods inherited from class globus.glmap.GLNativeObject

        dispose
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GLRouteBuilder

        public GLRouteBuilder()
        Default constructor
    • 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 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
                                           java.lang.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