Package de.stklcode.pubtrans.ura.model
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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()StringgetIndicator()DoublegetLatitude()DoublegetLongitude()StringgetName()IntegergetState()
-
-
-
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.
-
-