Routing
Calculate a route between two points
client.Routing.Route(ctx, body) (*RouteResult, error)
POST/api/v1/route
Snap a coordinate to the nearest road
client.Routing.Nearest(ctx, query) (*NearestResult, error)
GET/api/v1/nearest
Calculate an isochrone from a point
client.Routing.Isochrone(ctx, query) (*GeoJsonFeature, error)
GET/api/v1/isochrone
Calculate a distance matrix between points
client.Routing.Matrix(ctx, body) (*MatrixResult, error)
POST/api/v1/matrix
ModelsExpand Collapse
type MatrixRequest struct{…}
type MatrixRequest struct{…}
Destinations GeoJsonGeometryDestination points (GeoJSON MultiPoint geometry)
Destinations GeoJsonGeometry
Destination points (GeoJSON MultiPoint geometry)
Origins GeoJsonGeometryOrigin points (GeoJSON MultiPoint geometry)
Origins GeoJsonGeometry
Origin points (GeoJSON MultiPoint geometry)
type NearestResult struct{…}GeoJSON Point Feature snapped to the nearest road segment
type NearestResult struct{…}
GeoJSON Point Feature snapped to the nearest road segment
Geometry GeoJsonGeometry
Geometry GeoJsonGeometry
type RouteRequest struct{…}
type RouteRequest struct{…}
Destination GeoJsonGeometryDestination point (GeoJSON Point geometry)
Destination GeoJsonGeometry
Destination point (GeoJSON Point geometry)
Origin GeoJsonGeometryOrigin point (GeoJSON Point geometry)
Origin GeoJsonGeometry
Origin point (GeoJSON Point geometry)
type RouteResult struct{…}
type RouteResult struct{…}
Geometry GeoJsonGeometry
Geometry GeoJsonGeometry