# Packages
Package google provides functions for measuring distances and durations using
the Google Distance Matrix API and polylines from Google Maps Distance API.
Package here provides a client for measuring distances and durations.
Package osrm provides a client for measuring distances and durations.
Package routingkit provides measures that calculate the cost of travelling
between points on road networks.
# Functions
Bin is a measure that selects from a slice of indexed measures.
BuildMatrixRequestPoints builds a slice of points in the correct format to request a matrix from any of the supported platforms (e.g.
ByClockwise implements sort.Interface for sorting points clockwise around a central point.
Constant measure always estimates the same cost.
ConstantByPoint measure always estimates the same cost.
DebugOverride returns an Override that when marshalled will include debugging information describing the number of queries for default and override elements.
DebugSparse returns a Sparse that when marshalled will include debugging information describing the number of queries for elements included in (and not included in) the matrix.
DependentIndexed is a measure that uses a custom cost function to calculate parameter dependent costs for connecting two points by index.
EuclideanByPoint computes straight line distance connecting two indices.
HaversineByPoint estimates meters connecting two points along the surface of the earth.
Indexed creates a ByIndex measure from the given ByPoint measure and wrapping the provided points.
IsTriangular returns true if the triangle inequality holds for the provided measure.
LessClockwise returns true if a is closer to a central point than b, and false if it is not.
Matrix measure returns pre-computed cost between two locations.
Override measure uses a default measure for all arcs that are not true for a condition.
OverrideZeroPoints overrides points that have been passed as placeholders [0,0] to build the matrix with zero values.
Power raises the cost of some other measure to an exponent.
Scale the cost of some other measure by a constant.
ScaleByPoint scales an underlying measure by a constant.
Sparse measure returns pre-computed costs between two locations without requiring a full data set.
Sum adds other measures together.
TaxicabByPoint adds absolute distances between two points in all dimensions.
Truncate the cost of some other measure.
Unique returns a ByIndex that uses a reference slice to map the indices of a point to the index of the measure.
# Structs
ByIndexLoader can be embedded in schema structs and unmarshals a ByIndex JSON object into the appropriate implementation.
ByPointLoader can be embedded in schema structs and unmarshals a ByPoint JSON object into the appropriate implementation.
Times holds the estimated time of arrival (ETA), estimated time of when service starts (ETS) and estimated time of departure (ETD).
VehicleData holds vehicle specific data, including times by index (ETA, ETD and ETS), a vehicle id, the vehicle's route and the solution value for that vehicle.
# Interfaces
ByIndex estimates the cost of going from one index to another.
ByPoint estimates the cost of going from one point to another.
DependentByIndex estimates the cost of going from one index to another taking a point in time into account.
Triangular indicates that the triangle inequality holds for every measure that implements it.
# Type aliases
Point represents a point in space.