Method | Description | |
---|---|---|
UpdateRouteStops ( |
Recalculate which routes the stops belong to, and the order. Call after any change to route or stops
|
|
UpdateStopsForAllRoutes ( ) : void | ||
UpdateStopsForRoute ( |
Method | Description | |
---|---|---|
AngleBetween3Points ( Coordinate A, Coordinate B, Coordinate C ) : double |
Find the angle between stop and A-B segment. Used to ensure that stop is only used if it's on the right side of the route
|
|
FindDistanceToSegment ( Coordinate stopPosition, Coordinate p1, Coordinate p2, Coordinate &closest ) : double | ||
RemovePreviousRouteStops ( |
public UpdateRouteStops ( |
||
db | ||
routeID | int | Route being recalculated |
shapePoints | List |
|
stops | List |
|
return | void |
public UpdateStopsForRoute ( |
||
db | ||
routeID | int | |
return | void |