aboutsummaryrefslogtreecommitdiff
path: root/src/Enmarcha.Sources.OpenTripPlannerGql
diff options
context:
space:
mode:
Diffstat (limited to 'src/Enmarcha.Sources.OpenTripPlannerGql')
-rw-r--r--src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs b/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs
index 64e148d..6e89f08 100644
--- a/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs
+++ b/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/ArrivalsAtStop.cs
@@ -53,8 +53,12 @@ public class ArrivalsAtStopContent : IGraphRequest<ArrivalsAtStopContent.Args>
}}
}}
{geometryField}
+ pattern {{
+ id
+ }}
stoptimes {{
stop {{
+ gtfsId
name
lat
lon
@@ -125,9 +129,16 @@ public class ArrivalsAtStopResponse : AbstractGraphResponse
[JsonPropertyName("tripGeometry")] public GeometryDetails? Geometry { get; set; }
+ [JsonPropertyName("pattern")] public PatternRef? Pattern { get; set; }
+
[JsonPropertyName("stoptimes")] public List<StoptimeDetails> Stoptimes { get; set; } = [];
}
+ public class PatternRef
+ {
+ [JsonPropertyName("id")] public required string Id { get; set; }
+ }
+
public class GeometryDetails
{
[JsonPropertyName("points")] public string? Points { get; set; }
@@ -141,6 +152,7 @@ public class ArrivalsAtStopResponse : AbstractGraphResponse
public class StopDetails
{
+ [JsonPropertyName("gtfsId")] public string? GtfsId { get; set; }
[JsonPropertyName("name")] public required string Name { get; set; }
[JsonPropertyName("lat")] public double Lat { get; set; }
[JsonPropertyName("lon")] public double Lon { get; set; }