routes

package
v0.0.0-...-723d53e Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PartialRoutePosition

type PartialRoutePosition struct {
	ID       string    `json:"routeId"`
	ClientID string    `json:"clientID"`
	Position []float64 `json:"position"`
	Finished bool      `json:"finished"`
}

structured to send for another system

type Position

type Position struct {
	Lat  float64 `json:"lat"`
	Long float64 `json:"long"`
}

type Route

type Route struct {
	ID        string     `json:"routeId"`
	ClientID  string     `json:"clientId"`
	Positions []Position `json:"position"`
}

Structure Data

func NewRoute

func NewRoute() *Route

Create a new Route

func (*Route) ExportJsonPositions

func (r *Route) ExportJsonPositions() ([]string, error)

tranform positions string to json

func (*Route) LoadPositions

func (r *Route) LoadPositions() error

load positions

Jump to

Keyboard shortcuts

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