package
1.11.0
Repository: https://github.com/nextmv-io/nextroute.git
Documentation: pkg.go.dev

# Functions

CentroidLocation returns the centroid of the given stops.
DefaultCustomResultStatistics creates default custom statistics for a given solution.
Format formats a solution in a basic format using the [schema.Output] to format a solution.
HaversineDistance returns the distance between two locations using the haversine formula.
NewAndStopClusterFilter returns a StopClusterFilter that filters out stop clusters that are filtered out by all the given filters.
NewClusterSolution returns a solution for the given side using the given options.
NewDefaultModelFactory returns a new default model factory.
NewDurationGroupsExpression returns a duration group expression.
NewGreedySolution returns a greedy solution for the given side.
NewModel is the implementation of NewModel.
NewOrStopClusterFilter returns a StopClusterFilter that filters out stop clusters that are filtered out by any of the given filters.
NewPlanUnitStopClusterGenerator returns a list of stop clusters based upon unplanned plan units.
NewSortStopClustersOnDistanceFromCentroid sorts the stop clusters based upon the distance from the centroid of the stop cluster to the centroid of all stops.
NewSortStopClustersRandom returns StopClusterSorter which sorts the stop clusters randomly.
NewStartSolution returns a start solution.
NewStopCluster returns a new stop cluster for the given stops.
NewStopClusterFilterArea returns a StopClusterFilter that filters out stop clusters resulting in covering a square area defined by the parameter.
ToSolutionOutput converts a solution to a [schema.SolutionOutput].

# Structs

ClusterSolutionOptions configure how the [NewGreedySolution] function builds [nextroute.Solution].
DurationGroup is a group of stops with a duration.
FilterAreaOptions configure how the [NewGreedySolution] function builds [nextroute.Solution].
GreedySolutionOptions configure how the [NewGreedySolution] function builds [nextroute.Solution].
Options configure how the [NewModel] function builds [nextroute.Model].

# Interfaces

DurationGroupsExpression is an interface implementing semantics of duration groups.
ModelFactory returns a new model for the given input and options.
StopCluster represents a group of stops that can be added to a vehicle.
StopClusterFilter returns true if the given stop cluster should be filtered out.
StopClusterGenerator returns a list of stop clusters for the given input.
StopClusterSorter returns a sorted list of stop clusters for the given input.