routing

package module
v0.0.0-...-d03cd41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

README

COOPGO Routing Service

COOPGO Routing Service a routing library implementing other routing providers APIs, such as Valhalla. It is part of the COOPGO Technical Platform.

Licence

COOPGO Routing is release under the terms of the AGPL version 3 licence.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	Summary RouteSummary
	Legs    []RouteLeg
}

type RouteLeg

type RouteLeg struct {
	Distance float64
	Duration time.Duration
	Polyline string
}

type RouteSummary

type RouteSummary struct {
	Polyline string
}

type RoutingService

type RoutingService interface {
	Route(locations []orb.Point) (route *Route, err error)
}

func NewRoutingService

func NewRoutingService(service_type string, baseUrl string) (RoutingService, error)

type ValhallaRouting

type ValhallaRouting struct {
	BaseURL string
}

func NewValhallaRouting

func NewValhallaRouting(baseURL string) (*ValhallaRouting, error)

func (*ValhallaRouting) Route

func (v *ValhallaRouting) Route(locations []orb.Point) (route *Route, err error)

Directories

Path Synopsis
encoding
proto

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL