cameras

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParamCameraID = "CameraID"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Camera

type Camera struct {
	CameraID         int            `json:"CameraID"`
	CameraLocation   CameraLocation `json:"CameraLocation"`
	CameraOwner      string         `json:"CameraOwner"`
	Description      any            `json:"Description"`
	DisplayLatitude  float64        `json:"DisplayLatitude"`
	DisplayLongitude float64        `json:"DisplayLongitude"`
	ImageHeight      int            `json:"ImageHeight"`
	ImageURL         string         `json:"ImageURL"`
	ImageWidth       int            `json:"ImageWidth"`
	IsActive         bool           `json:"IsActive"`
	OwnerURL         string         `json:"OwnerURL"`
	Region           string         `json:"Region"`
	SortOrder        int            `json:"SortOrder"`
	Title            string         `json:"Title"`
}

type CameraLocation

type CameraLocation struct {
	Description any     `json:"Description"`
	Direction   string  `json:"Direction"`
	Latitude    float64 `json:"Latitude"`
	Longitude   float64 `json:"Longitude"`
	MilePost    int     `json:"MilePost"`
	RoadName    string  `json:"RoadName"`
}

type CamerasClient

type CamerasClient struct {
	// contains filtered or unexported fields
}

func NewCamerasClient

func NewCamerasClient(wsdotClient *wsdot.WSDOTClient) (*CamerasClient, error)

func (*CamerasClient) GetCamera

func (c *CamerasClient) GetCamera(cameraID int) (*Camera, error)

func (*CamerasClient) GetCameras

func (c *CamerasClient) GetCameras() ([]Camera, error)

Jump to

Keyboard shortcuts

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