Skip to content

Commit

Permalink
Merge pull request #1211 from opentripplanner/respect-route-sort-orde…
Browse files Browse the repository at this point in the history
…r-in-route-viewer

Add `sortOrder` to route requests
  • Loading branch information
miles-grant-ibigroup authored May 20, 2024
2 parents 4b6b820 + 9ae4f0b commit 45d51f6
Show file tree
Hide file tree
Showing 4 changed files with 270 additions and 314 deletions.
18 changes: 11 additions & 7 deletions lib/actions/apiV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,14 +685,15 @@ export const findRoute = (params) =>
lang
phone
}
bikesAllowed
color
longName
shortName
mode
type
color
textColor
bikesAllowed
routeBikesAllowed: bikesAllowed
shortName
sortOrder
textColor
type
url
patterns {
Expand Down Expand Up @@ -821,11 +822,12 @@ export function findRoutes() {
id: gtfsId
name
}
color
longName
shortName
mode
shortName
sortOrder
type
color
}
}
`,
Expand Down Expand Up @@ -853,6 +855,7 @@ export function findRoutes() {
longName,
mode,
shortName,
sortOrder,
type
} = route
// Set color overrides if present
Expand Down Expand Up @@ -882,6 +885,7 @@ export function findRoutes() {
),
origColor,
shortName,
sortOrder,
type,
v2: true
}
Expand Down
Loading

0 comments on commit 45d51f6

Please sign in to comment.