routeris built on top of the two other Nextmv engines:
vehicleengine: routes stops that are assigned to a vehicle, and the
fleetengine: assigns stops to vehicles and routes them using an internal
routerreceives a set of stops that must be serviced by a fleet of vehicles and a list of options to configure. It returns routes for each vehicle, a list of unassigned stops (if any), and search output statistics. To learn how to use
router, start with the basic tutorial. We also suggest visiting the go package docs. Once the
godocserver has been launched, you can view the route package docs.
routerengine is configured through a list of options. Options are used to customize your routing app. They can be passed directly to the
NewRouterfunction or through the options method. Options are composable, meaning any number of options can be passed (or none at all).