summaryrefslogtreecommitdiff
path: root/golang/pkg/model/route.go
blob: 0533e619190f2ccd7d265bd24c9a5b9e36ac18fc (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"`
}