Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gtfsId to GraphQL query #19

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core-utils/src/itinerary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
const elevDistanceSpan = points[i][0] - start[0];
if (distance >= traversed && distance <= traversed + elevDistanceSpan) {
// Distance falls within this point and the previous one;
// compute & return iterpolated elevation value

Check failure on line 296 in packages/core-utils/src/itinerary.ts

View workflow job for this annotation

GitHub Actions / Check for spelling errors

iterpolated ==> interpolated
if (start[1] === null) {
console.warn(
"Elevation value does not exist for distance.",
Expand Down Expand Up @@ -372,7 +372,7 @@
// Create custom type for function including re-used canvas object
type GetTextWidth = typeof getTextWidth & { canvas: HTMLCanvasElement };

// re-use canvas object for better performance

Check failure on line 375 in packages/core-utils/src/itinerary.ts

View workflow job for this annotation

GitHub Actions / Check for spelling errors

re-use ==> reuse
const canvas =
(getTextWidth as GetTextWidth).canvas ||
((getTextWidth as GetTextWidth).canvas = document.createElement("canvas"));
Expand Down Expand Up @@ -670,7 +670,7 @@
},
route: leg.route?.shortName,
routeColor: leg.route?.color,
routeId: leg.route?.id,
routeId: leg.route?.gtfsId,
routeLongName: leg.route?.longName,
routeShortName: leg.route?.shortName,
routeTextColor: leg.route?.textColor,
Expand Down
1 change: 1 addition & 0 deletions packages/core-utils/src/planQuery.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ query Plan(
id
}
color
gtfsId
id
longName
shortName
Expand Down
Loading