api

package
v1.2.9-0...-216e217 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const IDPrefix = "kvg-"

Variables

This section is empty.

Functions

func GetStops

func GetStops() (res map[string]*protocol.Stop, err error)

func GetTrip

func GetTrip(tripID string) (*protocol.Trip, error)

func GetTripPath

func GetTripPath(tripID string) []protocol.Location

func GetVehicle

func GetVehicle(vehicleID string) protocol.Vehicle

func GetVehicles

func GetVehicles() (res map[string]*protocol.Vehicle, err error)

Types

type DepartureStatus

type DepartureStatus string

type Platform

type Platform struct {
	StopPoint string `json:"stopPoint"`
	ShortName string `json:"shortName"`
	Label     string `json:"label"`
}

func GetPlatforms

func GetPlatforms(stopShortName string) ([]Platform, error)

type StopDepartures

type StopDepartures struct {
	Departures    []departure `json:"actual"`
	GeneralAlerts []alert     `json:"generalAlerts"`
	Routes        []routes    `json:"routes"`
}

func GetPlatformDepartures

func GetPlatformDepartures(stopPoint string) (*StopDepartures, error)

type StopDetails

type StopDetails struct {
	Departures []protocol.StopArrival
	Alerts     []string
}

func GetStopDetails

func GetStopDetails(stopShortName string) (*StopDetails, error)

Jump to

Keyboard shortcuts

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