Class Stop

    • Constructor Detail

      • Stop

        public Stop​(String id,
                    String name,
                    String indicator,
                    Integer state,
                    Double latitude,
                    Double longitude)
        Construct Stop object.
        Parameters:
        id - Stop ID.
        name - Stop name.
        indicator - Stop indicator.
        state - Stop state.
        latitude - Stop geolocation latitude.
        longitude - Stop geolocation longitude.
      • Stop

        public Stop​(List raw)
             throws IOException
        Construct Stop object from raw list of attributes parsed from JSON.
        Parameters:
        raw - List of attributes from JSON line
        Throws:
        IOException - Thrown on invalid line format.
    • Method Detail

      • getId

        public String getId()
        Returns:
        The stop ID.
      • getName

        public String getName()
        Returns:
        The stop name.
      • getIndicator

        public String getIndicator()
        Returns:
        The stop indicator.
      • getState

        public Integer getState()
        Returns:
        The stop indicator.
      • getLatitude

        public Double getLatitude()
        Returns:
        The stop geolocation latitude.
      • getLongitude

        public Double getLongitude()
        Returns:
        The stop geolocation longitude.