aboutsummaryrefslogtreecommitdiff
path: root/src/Enmarcha.Sources.OpenTripPlannerGql
diff options
context:
space:
mode:
authorCopilot <198982749+Copilot@users.noreply.github.com>2026-02-28 23:32:50 +0100
committerGitHub <noreply@github.com>2026-02-28 23:32:50 +0100
commit3573ecae94aa328591d4b3a6e2d05e4fc9e261fc (patch)
tree1b4484e6d8be40729d5fba473bb2a5309a825434 /src/Enmarcha.Sources.OpenTripPlannerGql
parenta0639ec35054f8b430a3d5aefff734f2f23c9f21 (diff)
Deduplicate and collapse routes with excessive short-name variants on stop arrivals (#137)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com>
Diffstat (limited to 'src/Enmarcha.Sources.OpenTripPlannerGql')
-rw-r--r--src/Enmarcha.Sources.OpenTripPlannerGql/Queries/StopsInfo.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/StopsInfo.cs b/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/StopsInfo.cs
index 01557c0..f95de15 100644
--- a/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/StopsInfo.cs
+++ b/src/Enmarcha.Sources.OpenTripPlannerGql/Queries/StopsInfo.cs
@@ -19,6 +19,7 @@ public class StopsInfoContent : IGraphRequest<StopsInfoContent.Args>
lat
lon
routes {{
+ gtfsId
shortName
color
textColor
@@ -50,6 +51,7 @@ public class StopsInfoResponse : AbstractGraphResponse
public class RouteDetails
{
+ [JsonPropertyName("gtfsId")] public required string GtfsId { get; set; }
[JsonPropertyName("shortName")] public string? ShortName { get; set; }
[JsonPropertyName("color")] public string? Color { get; set; }
[JsonPropertyName("textColor")] public string? TextColor { get; set; }