Class RouteResultParams


  • class RouteResultParams
    extends java.lang.Object
    The RouteResultParams contains the fields computed by Router.shortestPath and Router.routeDirections (stored as an HTML-friendly String) for serialization by Gson. The fields in this class cannot be accessed as it is only used to serialize results in MapServer.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String directions
      The HTML-friendly String representation of the navigation directions.
      private boolean routingSuccess
      Whether or not the route was successfully computed.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RouteResultParams()
      Private constructor to prevent direct instantiation of a RouteResultParams instance.
      (package private) RouteResultParams​(boolean routingSuccess, java.lang.String directions)
      Constructs a RouteResultParams instance and sets the routingSuccess and distance fields.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • routingSuccess

        private final boolean routingSuccess
        Whether or not the route was successfully computed.
      • directions

        private final java.lang.String directions
        The HTML-friendly String representation of the navigation directions.
    • Constructor Detail

      • RouteResultParams

        private RouteResultParams()
        Private constructor to prevent direct instantiation of a RouteResultParams instance.
      • RouteResultParams

        RouteResultParams​(boolean routingSuccess,
                          java.lang.String directions)
        Constructs a RouteResultParams instance and sets the routingSuccess and distance fields.
        Parameters:
        routingSuccess - The routingSuccess field.
        directions - The directions field.