Class StopModel

java.lang.Object
com.nnamo.models.StopModel

public class StopModel extends Object
Represents a GTFS stop location with an ID, name, latitude, longitude, and optional location type.
  • Constructor Details

    • StopModel

      public StopModel()
      Empty constructor required by OrmLite.
    • StopModel

      public StopModel(String id, String name, double latitude, double longitude)
      Constructs a StopModel with the specified ID, name, latitude, and longitude.
      Parameters:
      id - the stop identifier
      name - the stop name
      latitude - the latitude coordinate
      longitude - the longitude coordinate
  • Method Details

    • getId

      public String getId()
      Gets the stop identifier.
      Returns:
      the stop ID
    • getName

      public String 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

      public String getLocationType()
      Gets the location type.
      Returns:
      the location type, or null if not set
    • toString

      public String toString()
      Returns a string representation of the StopModel.
      Overrides:
      toString in class Object
      Returns:
      string representation