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 walking time to travel time service object #1099

Open
wants to merge 1 commit into
base: dpd/update-placements-index-design
Choose a base branch
from

Conversation

dp-daly
Copy link
Contributor

@dp-daly dp-daly commented Oct 9, 2024

Context

We are adding travel duration between a user's search location and placement schools which appear in search results. A service object exists with drive and transit travel modes, but a walk travel mode is also needed.

Changes proposed in this pull request

  • Adapt the travel time service object to include walking time, as well as driving and transit.
  • Only travel time needed. Remove distance from object.

Guidance to review

Run the following travel time tests:

  • spec/services/placements/travel_time_spec.rb
  • spec/lib/google/routes_api_spec.rb

Run the school decorator test (modified to add walking duration as an attribute):

  • spec/decorators/school_decorator_spec.rb

Link to Trello card

https://trello.com/c/TMFoYL9a/855-add-walking-time-to-travel-time-service-object

@dp-daly dp-daly self-assigned this Oct 9, 2024
@dp-daly dp-daly requested review from a team as code owners October 9, 2024 16:50
@dp-daly dp-daly changed the base branch from main to dpd/update-placements-index-design October 9, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants