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

feat: router for OpenTripPlanner #109

Merged
merged 8 commits into from
Jul 13, 2023

Conversation

khamaileon
Copy link
Collaborator

@khamaileon khamaileon commented Jun 27, 2023

image

@khamaileon khamaileon force-pushed the opentripplanner branch 2 times, most recently from f24167b to 83c3c3b Compare June 27, 2023 09:09
@khamaileon khamaileon changed the title Add v1 router for OpenTripPlanner First draft of a router for OpenTripPlanner Jun 27, 2023
Copy link
Member

@nilsnolde nilsnolde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @khamaileon , very good effort! You're the first one actually contributing a whole provider 💯

This seems to target OTP v1.x right? I had little exposure to their API, but I do see an isochrone implementation and AFAIK that was dropped in v2.x (though I heard that it'll be re-implemented due to popular demand or maybe it was already?). In that case we should probably name this provider OpenTripPlannerV1 (or OpenTripPlannerV2 respectively, v1 is still in wide use)?

I don't have much to review on the API side, just a few conceptual questions and nits. Since we didn't merge the "live request" support yet, I'd trust you there and handle bugs as they appear.

routingpy/convert.py Show resolved Hide resolved
routingpy/routers/__init__.py Show resolved Hide resolved
routingpy/routers/opentripplanner.py Outdated Show resolved Hide resolved
routingpy/routers/opentripplanner.py Outdated Show resolved Hide resolved
routingpy/routers/opentripplanner.py Outdated Show resolved Hide resolved
routingpy/routers/opentripplanner.py Outdated Show resolved Hide resolved
@khamaileon
Copy link
Collaborator Author

Thanks you 🙂. This is only a first draft. I've already identified few improvements.

It's v2. You're right, it's better to specify it. Isochrone is implemented. Sorry, I had force-pushed and maybe you've only seen the first draft.

@nilsnolde nilsnolde marked this pull request as draft July 4, 2023 14:44
@nilsnolde
Copy link
Member

Sure, no worries, I thought it was done for you. I converted your PR into a draft PR so it's clearer. Just un-draft it once you're ready:) Thanks!

@khamaileon
Copy link
Collaborator Author

Ah I thought I'd drafted it. Hence the misunderstanding thank you! Okay, it's ready now :)

@khamaileon khamaileon changed the title First draft of a router for OpenTripPlanner feat: router for OpenTripPlanner Jul 4, 2023
@khamaileon khamaileon marked this pull request as ready for review July 4, 2023 14:49
@nilsnolde
Copy link
Member

Sorry for the delay on this, I’ll have a look until the end of the week.

@khamaileon
Copy link
Collaborator Author

No worries, ty @nilsnolde

"here": HereMaps,
"heremaps": HereMaps,
"openrouteservice": ORS,
"opentripplanner_v2": OpenTripPlannerV2,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we could allow shortcutting to otp_v2?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done :)

@khamaileon
Copy link
Collaborator Author

Thanks for the review. I'll let you do the merge :)

@nilsnolde
Copy link
Member

Interesting, Github changed smth, usually it'd require a re-approve. Maybe bcs only the commented file changed..

Anyways, thanks, this is great!

@nilsnolde nilsnolde merged commit 1e4094c into gis-ops:master Jul 13, 2023
2 checks passed
@khamaileon khamaileon deleted the opentripplanner branch July 26, 2023 09:36
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.

None yet

2 participants