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

Using IntermediatePlaces to a trip does not return a result if the Start and End are too close to each other. #2658

Closed
mmaranda-cs opened this issue Oct 22, 2018 · 3 comments

Comments

@mmaranda-cs
Copy link
Contributor

Expected behavior

I plan a route using intermediate places. The intermediate places are far away but the origin and destination of the route are close to each other or are the same place. I expect to be able to plan this kind of round trip behavior and have a valid request and response.

Observed behavior

Response does not return a route and includes the error: Origin is within a trivial distance of the destination

Version of OTP used (exact commit hash or JAR name)

Master

Data sets in use (links to GTFS and OSM PBF files)

New York was used in this example but any dataset will have this problem

Steps to reproduce the problem

Run a request with the following parameters in New York
fromPlace=40.608450000000005,-73.95725
toPlace=40.608450000000005,-73.95725
intermediatePlaces=40.608450000000005,-73.95725
mode=CAR

@t2gran
Copy link
Member

t2gran commented Oct 24, 2018

+1 I think is ok to remove Origin/Destination distance check for searches with Intermediate places, instead the check should be applied to O-I, and I-D.

For the future we(Entur, Norway) have some loose thoughts about separating this functionality out of OTP into a new component, an orchestrator that can take a request and translate it into several parallell OTP requests and then merge the result and apply a pareto function to the result. This component could as its own component or as part of the OTP process. This is not discussed by the PLC, but I wanted to mention it in as it relates to this issue.

@optionsome
Copy link
Member

I got rid of this issue in HSL fork by disabling the check in requests with intermediatePlaces (HSLdevcom@6b00a48). However, I was planning to replace it with a slightly smarter check that checks if any of the places that are directly linked to each other are on the same edge but haven't had time to implement it yet. This issue became relevant for us after we implemented a feature in our fork that allows to set locationSlack to intermediatePlaces in requests which defines the minimum time spent at an intermediate location.

@abyrd
Copy link
Member

abyrd commented Oct 29, 2020

Let's subsume this into #3183 for OTP2, closing.

@abyrd abyrd closed this as completed Oct 29, 2020
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

No branches or pull requests

4 participants