public class GtfsStop extends CsvBase
Constructor and Description |
---|
GtfsStop(org.apache.commons.csv.CSVRecord record,
boolean supplemental,
java.lang.String fileName)
Creates a GtfsStop object by reading the data from the CSVRecord.
|
GtfsStop(GtfsStop original,
double lat,
double lon)
Creates a copy of the GtfsStop but updates the latitude and longitude.
|
GtfsStop(GtfsStop originalStop,
GtfsStop supplementStop)
When combining a regular stop with a supplemental stop need to create a
whole new object since this class is Immutable to make it safer to use.
|
GtfsStop(java.lang.String stopId,
java.lang.Integer stopCode,
java.lang.String stopName,
double lat,
double lon)
For creating a GtfsStop object from scratch.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDeleteFirstStopFromRoutesStr()
Returns ":" separated string indicate route short names where this
stop should not be included in the trips if it is the first stop
of a trip.
|
java.lang.String |
getDeleteFromRoutesStr()
Returns ":" separated string indicate route short names where this
stop should not be included in the trips.
|
java.lang.Boolean |
getHidden()
Specifies if stop should be hidden from the public user interface.
|
java.lang.Boolean |
getlayoverStop()
Indicates that vehicle can leave route path before departing this stop
since the driver is taking a break.
|
java.lang.String |
getLocationType() |
java.lang.String |
getParentStation() |
java.lang.Integer |
getStopCode() |
java.lang.String |
getStopDesc() |
java.lang.String |
getStopId() |
double |
getStopLat() |
double |
getStopLon() |
java.lang.String |
getStopName() |
java.lang.String |
getStopTimezone() |
java.lang.String |
getStopUrl() |
java.lang.Boolean |
getTimepointStop()
Specifies if system should determine schedule adherence times
for this stop.
|
java.lang.Boolean |
getWaitStop()
Specifies if stop is a wait stop where driver is
not supposed to continue until the scheduled departure time.
|
java.lang.String |
getWheelchairBoarding() |
java.lang.String |
getZoneId() |
boolean |
shouldDeleteFromRoute(java.lang.String routeShortNameToDeleteFrom,
java.lang.String routesStr)
Returns true if the routeShortNameToDeleteFrom specified is defined in
deleteFromRoutes.
|
java.lang.String |
toString() |
getFileName, getLineNumber
public GtfsStop(java.lang.String stopId, java.lang.Integer stopCode, java.lang.String stopName, double lat, double lon)
public GtfsStop(org.apache.commons.csv.CSVRecord record, boolean supplemental, java.lang.String fileName)
record
- supplemental
- fileName
- for logging errorspublic GtfsStop(GtfsStop original, double lat, double lon)
original
- shapePtLat
- shapePtLon
- public java.lang.String getStopId()
public java.lang.Integer getStopCode()
public java.lang.String getStopName()
public java.lang.String getStopDesc()
public double getStopLat()
public double getStopLon()
public java.lang.String getZoneId()
public java.lang.String getStopUrl()
public java.lang.String getLocationType()
public java.lang.String getParentStation()
public java.lang.String getStopTimezone()
public java.lang.String getWheelchairBoarding()
public java.lang.Boolean getTimepointStop()
public java.lang.Boolean getlayoverStop()
public java.lang.Boolean getWaitStop()
public java.lang.Boolean getHidden()
public java.lang.String getDeleteFromRoutesStr()
public java.lang.String getDeleteFirstStopFromRoutesStr()
public boolean shouldDeleteFromRoute(java.lang.String routeShortNameToDeleteFrom, java.lang.String routesStr)
routeShortNameToDeleteFrom
- The short name of the route currently working on. Used to
determine if the stop really should be deleted.routesStr
- Should be deleteFromRoutesStr or deleteFirstStopFromRoutesStr,
depending on type of stop deletion.public java.lang.String toString()
toString
in class java.lang.Object