Class Stop

java.lang.Object
de.stklcode.pubtrans.ura.model.Stop
All Implemented Interfaces:
Serializable

public final class Stop extends Object
Entity for a single stop.
Author:
Stefan Kalscheuer
See Also:
  • Constructor Details

    • 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 Details

    • 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.