From 97908d274ee12eb2301fadd5fc445d0f79479a56 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Sat, 4 Apr 2026 15:44:41 +0200 Subject: Enhance arrival and transit functionality with new vehicle operation logic and transit kind classification --- .../Queries/ArrivalsAtStop.cs | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'src/Enmarcha.Sources.OpenTripPlannerGql/Queries') 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 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 -- cgit v1.3