diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2026-04-04 15:44:41 +0200 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2026-04-04 15:44:41 +0200 |
| commit | 97908d274ee12eb2301fadd5fc445d0f79479a56 (patch) | |
| tree | 04eee0ad547cc68047011dea82549dcad4a0d0d8 /src/Enmarcha.Sources.OpenTripPlannerGql/Queries | |
| parent | 1b4f4a674ac533c0b51260ba35ab91dd2cf9486d (diff) | |
Enhance arrival and transit functionality with new vehicle operation logic and transit kind classification
Diffstat (limited to 'src/Enmarcha.Sources.OpenTripPlannerGql/Queries')
| -rw-r--r-- | src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs b/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs index 7605e5a..cc0f4e6 100644 --- a/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs +++ b/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs @@ -31,8 +31,9 @@ public class ArrivalsAtStopContent : IGraphRequest<ArrivalsAtStopContent.Args> headsign scheduledDeparture serviceDay + stopPosition pickupType - + dropoffType trip {{ gtfsId serviceId @@ -108,13 +109,16 @@ public class ArrivalsAtStopResponse : AbstractGraphResponse [JsonPropertyName("scheduledDeparture")] public int ScheduledDepartureSeconds { get; set; } - [JsonPropertyName("serviceDay")] - public long ServiceDay { get; set; } + [JsonPropertyName("serviceDay")] public long ServiceDay { get; set; } [JsonPropertyName("pickupType")] public required string PickupTypeOriginal { get; set; } - public PickupType PickupTypeParsed => PickupType.Parse(PickupTypeOriginal); + [JsonPropertyName("dropoffType")] public required string DropoffTypeOriginal { get; set; } + public PickupType DropoffTypeParsed => PickupType.Parse(DropoffTypeOriginal); + + [JsonPropertyName("stopPosition")] public int StopPosition { get; set; } + [JsonPropertyName("trip")] public required TripDetails Trip { get; set; } } @@ -131,8 +135,7 @@ public class ArrivalsAtStopResponse : AbstractGraphResponse [JsonPropertyName("departureStoptime")] public required TerminusStoptime DepartureStoptime { get; set; } - [JsonPropertyName("arrivalStoptime")] - public required TerminusStoptime ArrivalStoptime { get; set; } + [JsonPropertyName("arrivalStoptime")] public required TerminusStoptime ArrivalStoptime { get; set; } [JsonPropertyName("route")] public required RouteDetails Route { get; set; } @@ -156,7 +159,9 @@ public class ArrivalsAtStopResponse : AbstractGraphResponse public class StoptimeDetails { [JsonPropertyName("stop")] public required StopDetails Stop { get; set; } - [JsonPropertyName("scheduledDeparture")] public int ScheduledDeparture { get; set; } + + [JsonPropertyName("scheduledDeparture")] + public int ScheduledDeparture { get; set; } } public class StopDetails |
