Package org.onebusaway.gtfs.model
Class ShapePoint
- All Implemented Interfaces:
Serializable,Comparable<ShapePoint>,HasExtensions
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintdoublegetId()doublegetLat()doublegetLon()getProxy()intbooleanvoidsetDistTraveled(double distTraveled) voidvoidsetLat(double lat) voidsetLon(double lon) voidsetProxy(ShapePointProxy proxy) When set, all interactions with the shape point will be redirected through this proxy.voidsetSequence(int sequence) voidsetShapeId(AgencyAndId shapeId) toString()Methods inherited from class org.onebusaway.gtfs.model.IdentityBean
equals, getExtension, hashCode, putExtension
-
Field Details
-
MISSING_VALUE
public static final double MISSING_VALUE- See Also:
-
-
Constructor Details
-
ShapePoint
public ShapePoint() -
ShapePoint
-
-
Method Details
-
getId
- Specified by:
getIdin classIdentityBean<Integer>
-
setId
- Specified by:
setIdin classIdentityBean<Integer>
-
getShapeId
-
setShapeId
-
getSequence
public int getSequence() -
setSequence
public void setSequence(int sequence) -
isDistTraveledSet
public boolean isDistTraveledSet() -
getDistTraveled
public double getDistTraveled()- Returns:
- the distance traveled along the shape path. If no distance was
specified, the value is undefined. Check first with
isDistTraveledSet()
-
setDistTraveled
public void setDistTraveled(double distTraveled) -
clearDistTraveled
public void clearDistTraveled() -
getLat
public double getLat() -
setLat
public void setLat(double lat) -
getLon
public double getLon() -
setLon
public void setLon(double lon) -
setProxy
When set, all interactions with the shape point will be redirected through this proxy.- Parameters:
proxy-
-
getProxy
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<ShapePoint>
-