metro_tenerife

package
v0.0.0-...-5092238 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseURL

func BaseURL(locId string) string

func GetJson

func GetJson(url string, target interface{}) error

Types

type PanelTram

type PanelTram struct {
	Stop                       string
	StopDescription            string
	DestinationStopDescription string
	RemainingMinutes           int
	Load                       int
}

type Panels

type Panels []struct {
	Service                    string `json:"service"`
	Stop                       string `json:"stop"`
	StopSAE                    int    `json:"stopSAE"`
	DestinationStop            string `json:"destinationStop"`
	StopDescription            string `json:"stopDescription"`
	DestinationStopDescription string `json:"destinationStopDescription"`
	Route                      int    `json:"route"`
	Direction                  int    `json:"direction"`
	LastUpdate                 int64  `json:"lastUpdate"`
	LastUpdateFormatted        string `json:"lastUpdateFormatted"`
	RemainingMinutes           int    `json:"remainingMinutes"`
	OrderStop                  int    `json:"orderStop"`
}

type Stop

type Stop struct {
	Id   string
	Name string
}

type Trams

type Trams []struct {
	Vehicle int    `json:"VEHICULO"`
	Date    string `json:"FECHA"`
	Service int    `json:"SERVICIO"`
	Load    int    `json:"CARGA"`
}

Jump to

Keyboard shortcuts

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