Package com.nnamo.models
Class StopModel
java.lang.Object
com.nnamo.models.StopModel
Represents a GTFS stop location with an ID, name, latitude, longitude, and
optional location type.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StopModel
public StopModel()Empty constructor required by OrmLite. -
StopModel
Constructs a StopModel with the specified ID, name, latitude, and longitude.- Parameters:
id
- the stop identifiername
- the stop namelatitude
- the latitude coordinatelongitude
- the longitude coordinate
-
-
Method Details
-
getId
Gets the stop identifier.- Returns:
- the stop ID
-
getName
Gets the stop name.- Returns:
- the stop name
-
getLatitude
public double getLatitude()Gets the latitude coordinate.- Returns:
- the latitude
-
getLongitude
public double getLongitude()Gets the longitude coordinate.- Returns:
- the longitude
-
getLocationType
Gets the location type.- Returns:
- the location type, or null if not set
-
toString
Returns a string representation of the StopModel.
-