autobahn

package
v0.0.0-...-441f3cd Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UrlApi = "https://verkehr.autobahn.de/o/autobahn/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Coordinate

type Coordinate struct {
	Lat  string `json:"lat"`
	Long string `json:"long"`
}

type ResponseRoads

type ResponseRoads struct {
	Roads []Road `json:"roads"`
}

type ResponseWebcams

type ResponseWebcams struct {
	Webcams []Webcam `json:"webcams"`
}

type Road

type Road string

func GetRoads

func GetRoads() ([]Road, error)

type Webcam

type Webcam struct {
	Extent                   string        `json:"extent"`
	Identifier               string        `json:"identifier"`
	RouteRecommendation      []interface{} `json:"routeRecommendation"`
	Coordinate               Coordinate    `json:"coordinate"`
	Footer                   []string      `json:"footer"`
	Icon                     string        `json:"icon"`
	IsBlocked                string        `json:"isBlocked"`
	Description              []interface{} `json:"description"`
	Title                    string        `json:"title"`
	Operator                 string        `json:"operator"`
	Point                    string        `json:"point"`
	DisplayType              string        `json:"display_type"`
	LorryParkingFeatureIcons []interface{} `json:"lorryParkingFeatureIcons"`
	Future                   bool          `json:"future"`
	ImageURL                 string        `json:"imageurl"`
	Subtitle                 string        `json:"subtitle"`
	LinkURL                  string        `json:"linkurl"`
}

func GetWebcams

func GetWebcams(r Road) ([]Webcam, error)

Jump to

Keyboard shortcuts

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