Class GLRouteBuilder


  • public class GLRouteBuilder
    extends globus.glmap.GLNativeObject
    GLRouteBuilder used construct custom routes.
    • 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
      • setManeuverStreets

        public void setManeuverStreets​(@NonNull
                                       java.lang.String[] maneuverStreets)
        Parameters:
        maneuverStreets - street names that are consistent along the entire maneuver.
      • setManeuverPreInstruction

        public void setManeuverPreInstruction​(@NonNull
                                              java.lang.String preInstruction)
        Parameters:
        preInstruction - Text suitable for use as a verbal message immediately prior to the maneuver transition.
      • setManeuverTransitionInstruction

        public void setManeuverTransitionInstruction​(@NonNull
                                                     java.lang.String transitionInstruction)
        Parameters:
        transitionInstruction - Text suitable for use as a verbal alert in a navigation application.
      • setManeuverPostInstruction

        public void setManeuverPostInstruction​(@NonNull
                                               java.lang.String postInstruction)
        Parameters:
        postInstruction - Text suitable for use as a verbal message immediately after the maneuver transition.
      • build

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