# Packages
Code generated by MockGen.
# Functions
DefaultClient creates a new OSRM Client.
DistanceDurationMatrices fetches a distance and duration table from an OSRM server and returns a Matrix of each.
DistanceMatrix makes a request for a distance table from an OSRM server and returns a Matrix.
DurationMatrix makes a request for a duration table from an OSRM server and returns a Matrix.
NewClient returns a new OSRM Client.
NewError returns a new NewError.
ParallelRuns set the number of parallel calls to the OSRM server.
Polyline requests polylines for the given points.
WithApproachCurb returns a TableOptions func for a tableConfig with the approach curb set.
WithCache configures the maximum number of results cached.
WithClientTransport overwrites the RoundTripper used by the internal http.Client.
WithDistance returns a TableOptions function for composing a tableConfig with distance data enabled, telling the OSRM server to include distance data in the response table data.
WithDuration returns a TableOptions function for composing a tableConfig with duration data enabled, telling the OSRM server to include duration data in the response table data.
WithExclude returns a TableOptions func for a tableConfig with the exclude parameter set.
# Constants
RouteEndpoint is used to retrieve polylines for a set of points.
TableEndpoint is used to retrieve distance and duration matrices.
# Structs
Error is an error that reflects an error that is the user's fault.
Leg partially represents the OSRM Leg object.
Route partially represents the OSRM Route object.
RouteResponse holds the route response from the OSRM server.
Step partially represents the OSRM Step object.
# Interfaces
Client represents an OSRM client.
# Type aliases
ClientOption can pass options to be used with an OSRM client.
Endpoint defines the OSRM endpoint to be used.
TableOptions is a function that configures a tableConfig.