Package de.stklcode.pubtrans.ura.model
Class Stop
java.lang.Object
de.stklcode.pubtrans.ura.model.Stop
- All Implemented Interfaces:
Serializable
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
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
- Returns:
- The stop ID.
-
getName
- Returns:
- The stop name.
-
getIndicator
- Returns:
- The stop indicator.
-
getState
- Returns:
- The stop indicator.
-
getLatitude
- Returns:
- The stop geolocation latitude.
-
getLongitude
- Returns:
- The stop geolocation longitude.
-