mirror of
https://github.com/cjdenio/uta-trax-api.git
synced 2026-12-01 00:26:25 +00:00
tripid
This commit is contained in:
1 file changed
+2
@@ -336,6 +336,7 @@ type Departure struct {
|
|||||||
DepartureTime time.Time `json:"departureTime"`
|
DepartureTime time.Time `json:"departureTime"`
|
||||||
Headsign string `json:"headsign"`
|
Headsign string `json:"headsign"`
|
||||||
PredictedPlatform int `json:"predictedPlatform,omitempty"`
|
PredictedPlatform int `json:"predictedPlatform,omitempty"`
|
||||||
|
TripId string `json:"tripId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ApiDepartures struct {
|
type ApiDepartures struct {
|
||||||
@@ -476,6 +477,7 @@ func upcomingDeparturesHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
DepartureTime: time.Date(from.Year(), from.Month(), from.Day(), t.Hour(), t.Minute(), t.Second(), 0, loc),
|
DepartureTime: time.Date(from.Year(), from.Month(), from.Day(), t.Hour(), t.Minute(), t.Second(), 0, loc),
|
||||||
Headsign: departure.TripHeadsign,
|
Headsign: departure.TripHeadsign,
|
||||||
PredictedPlatform: predictPlatform(departure),
|
PredictedPlatform: predictPlatform(departure),
|
||||||
|
TripId: departure.TripId,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user