route

package
v0.0.0-...-3b1141f Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT 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"`
}

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:"cliendId"`
	Positions []Position `json:"position"`
}

func (*Route) ExportJsonPositions

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

func (*Route) LoadPosition

func (r *Route) LoadPosition() error

Jump to

Keyboard shortcuts

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