Categorygithub.com/nextmv-io/sdk/measure/routingkit
modulepackage
1.8.1
Repository: https://github.com/nextmv-io/sdk.git
Documentation: pkg.go.dev

# Functions

ByPoint constructs a measure.ByPoint that computes the road network distance connecting any two points found within the provided mapFile.
DurationByPoint is a measure that uses routingkit to calculate car travel times between given points.
DurationMatrix uses the provided mapFile to construct a measure.ByIndex that can find the road network durations between any point in srcs and any point in dests.
Matrix uses the provided mapFile to construct a measure.ByIndex that can find the road network distance between any point in srcs and any point in dests.
NewDistanceClient returns a new RoutingKit client.
NewDurationClient returns a new RoutingKit client.

# Variables

Bike constructs a bike routingkit profile.
Car constructs a car routingkit profile.
Pedestrian constructs a pedestrian routingkit profile.
Truck constructs a truck routingkit profile.

# Structs

ByIndexLoader can be embedded in schema structs and unmarshals a ByIndex JSON object into the appropriate implementation, including a routingkit.ByIndex.
ByPointLoader can be embedded in schema structs and unmarshals a ByPoint JSON object into the appropriate implementation, including a routingkit.ByPoint.
ProfileLoader can be embedded in schema structs and unmarshals a routingkit.Profile JSON object into the appropriate implementation.

# Interfaces

DistanceClient represents a RoutingKit distance client.
DurationClient represents a RoutingKit duration client.