drive

package
v0.0.0-...-145f379 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriveData

type DriveData struct {

	// Total miles in route
	StopSigns     float64 `json:"stop-signs,string"`
	YieldSigns    float64 `json:"yield-signs,string"`
	TrafficLights float64 `json:"traffic-lights,string"`
	Crosswalks    float64 `json:"crosswalks,string"`
	RRCrossings   float64 `json:"rr-crossings,string"`
	AccessGates   float64 `json:"access-gates,string"`

	// Each space b/n two boxes less than 5ft is a creep
	Creeps int `json:"creeps,string"`

	// array of distances, in ft
	Distances []float64 `json:"distances"`
}

DriveData for calculating new drive time

func (*DriveData) GetTime

func (dd *DriveData) GetTime() float64

Jump to

Keyboard shortcuts

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