public class RouteSegment extends Object
Constructor and Description |
---|
RouteSegment()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
appendRoutePoint(RoutePoint routePoint)
Append a RoutePoint to the segment
|
RoutePoint |
getFirstPoint() |
RoutePoint |
getLastPoint() |
int |
getNumberOfPoints()
Returns the number of points/coordinates in this segment
|
RoutePoint |
getPoint(int index)
Returns the point/coordinate at given index
|
ArrayList<RoutePoint> |
getRoutePoints()
Get the RoutePoints in an ArrayList
|
double |
getSegmentDistance()
This method returns the distance traveled in the segment
|
public int getNumberOfPoints()
public RoutePoint getPoint(int index)
index
- The indexpublic void appendRoutePoint(RoutePoint routePoint)
routePoint
- The point to appendpublic ArrayList<RoutePoint> getRoutePoints()
public RoutePoint getFirstPoint()
public RoutePoint getLastPoint()
public double getSegmentDistance()
Copyright © 2023. All rights reserved.