| Constructor and Description |
|---|
GtfsShape(org.apache.commons.csv.CSVRecord record,
boolean supplemental,
java.lang.String fileName)
Creates a GtfsShape object by reading the data
from the CSVRecord.
|
GtfsShape(GtfsShape original,
double shapePtLat,
double shapePtLon)
Creates a copy of the GtfsShape but updates the latitude and longitude.
|
GtfsShape(GtfsShape originalShape,
GtfsShape supplementShape)
When combining a regular shape point with a supplemental one need to
create a whole new object since this class is Immutable to make it safer
to use.
|
GtfsShape(java.lang.String shapeId,
double shapePtLat,
double shapePtLon,
int shapePtSequence,
double shapeDistTraveled)
Creates a GtfsShape object from scratch
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(GtfsShape arg0)
So can use Collections.sort() to sort an Array of GtfsStopTime objects by
stop sequence.
|
Location |
getLocation() |
java.lang.Double |
getShapeDistTraveled() |
java.lang.String |
getShapeId() |
double |
getShapePtLat() |
double |
getShapePtLon() |
int |
getShapePtSequence() |
boolean |
shouldDelete() |
java.lang.String |
toString() |
getFileName, getLineNumberpublic GtfsShape(java.lang.String shapeId,
double shapePtLat,
double shapePtLon,
int shapePtSequence,
double shapeDistTraveled)
public GtfsShape(org.apache.commons.csv.CSVRecord record,
boolean supplemental,
java.lang.String fileName)
throws java.lang.NumberFormatException
record - supplemental - fileName - for logging errorsjava.lang.NumberFormatExceptionpublic GtfsShape(GtfsShape original, double shapePtLat, double shapePtLon)
original - shapePtLat - shapePtLon - public java.lang.String getShapeId()
public double getShapePtLat()
public double getShapePtLon()
public Location getLocation()
public int getShapePtSequence()
public java.lang.Double getShapeDistTraveled()
public boolean shouldDelete()
public int compareTo(GtfsShape arg0)
compareTo in interface java.lang.Comparable<GtfsShape>arg0 - public java.lang.String toString()
toString in class java.lang.Object