Skip to content

Arrive-by search returns no results when we know there are valid ones #2414

@demory

Description

@demory

The following arrive-by search from Portland works as expected, returning a valid transit itinerary whose last leg arrives exactly 30 minutes ahead of the specified arrival time of 11:14pm:

http://maps7.trimet.org/ui_prod/?module=planner&fromPlace=2705+NE+ARGYLE+ST%2C+PORTLAND%3A%3A45.576992%2C-122.63753&toPlace=SE+Powell+Blvd+%26+SE+136th+Ave%2C+Portland%3A%3A45.497856%2C-122.523544&time=11:14pm&date=02-16-2017&mode=TRANSIT%2CWALK&maxWalkDistance=804.672&arriveBy=true&wheelchair=false&locale=en

However, if you bump the arrival time from 11:14 to 11:15pm, no results are found. This makes no sense; at minimum the same itinerary from the 11:14 search should be valid here, just with 31 idle minutes at the end instead of 30. (Note that results are returned, with a different itinerary, if the walk limit is increased.)

When we discussed last week, @mattwigway wondered if a 30 minute cutoff was being applied to to the "wait" time for the first vehicle (this is a reverse search, so that wait is after the vehicle drops the rider off). This would explain the above behavior, but I haven't been able to locate any such cutoff in the code. @abyrd curious if you have any insight.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions