-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(TripPlanner): render Massport and Logan Exp. icons and more (#2123)
* cleanup(TripPlanner.OpenTripPlanner): consolidate - cleanup the config values - rename TripPlan.Api.OpenTripPlanner to TripPlanner.OpenTripPlanner and - make it more responsible for fetching and parsing OTP results by moving relevant functionality from Dotcom.TripPlan.Query - add some testing * deps(mix): update open_trip_planner_client & deps * (incomplete) refactor(TripPlanner.Parser): use OTP data - the upgraded OTP client returns more data, which can be parsed here in lieu of making our own Routes.Repo or Stops.Repo calls to supplement the data. - use Agency info to populate route.external_agency_name - special parsing for route names for Logan Express and Massport - overwrite route colors for Logan Express routes because their GTFS doesn't match their website branding (!) - convert miles and minutes units here instead of in the views refactor(TripPlanner.FarePasses): extract the fare/passes computing into its own module - add Massport/Logan Express fares * feat(TripPlanner): render Massport and Logan Exp. icons and more fix everything else to work with the following changes: - chore(TripPlan.IntermediateStop): use stop struct instead of stop_id - chore(TripPlan.Location): use stop struct instead of stop_id - chore(TripPlan.NamedPosition): use stop struct instead of stop_id - chore(TripPlan.TransitDetail): use route struct instead of route_id * tests(TripPlanner): refactor using OpenTripPlannerClient.Factory functions - fix(Fares): correct fare atom for rail replacement buses * fixup(TripPlanner): render Massport and Logan Exp. icons and more
- Loading branch information
1 parent
6e26036
commit 1f0e83a
Showing
70 changed files
with
1,687 additions
and
2,051 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
defmodule Dotcom.TripPlan.IntermediateStop do | ||
defstruct description: nil, | ||
stop_id: nil, | ||
stop: nil, | ||
alerts: [] | ||
|
||
@type t :: %__MODULE__{ | ||
description: iodata, | ||
stop_id: Stops.Stop.id_t(), | ||
stop: Stops.Stop.t(), | ||
alerts: [Alerts.Alert.t()] | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.