summaryrefslogtreecommitdiff
path: root/golang/pkg/model/route.go
blob: 0d104b24812f1b58260a970897c7a3209f9cd2fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package model

import "time"

type Route struct {
	Arrival       time.Time      `json:"arrival"`
	DepartureTime time.Time      `json:"departureTime"`
	Destination   *RouteEndpoint `json:"destination"`
}

type RouteEndpoint struct {
	Type         string `json:"type"`
	Symbol       string `json:"symbol"`
	SystemSymbol string `json:"systemSymbol"`
	X            int    `json:"x"`
	Y            int    `json:"y"`
}