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
Default implementation for route creation #26
Comments
It would be nice, if you could make a list where the current implementation deviates from a proper default. |
This is mainly a placeholder for a task (and a follow up PR to #9). Right now, to keep the #9 PR as small as possible no thinking has been going into this and no default implementation has been defined. This here is the issue to take the task. Once we finished with the factory structure, we probably want to do some deeper thinking all together how and what to do in a default implementation and how it differs from Fenix code: What we want to move into a default implementation as it is, what we want to improve in Fenix and move over to the default implementation, and what is so particular that it has to live in Fenix. Here is a very much brainstormy list I can come up with right now.
|
Thanks for the list!
Definitely!
The downside of this would be that we would make ourselves totally dependent on their classes which might change without further notice. This bit me in the past in another project. Also, we have no way to extend/change things if we ever need to. I'd be careful with that approach if it is even possible. But maybe I misunderstand. Let's look at this in detail when the time comes.
Sure, all these should be moved into the FenixCreators.
I think the
Something I'd love to have your help with!
For sure! These should either come from OSM tags (#13) or when that's not suitable maybe there could be a get_route_url() method somewhere. I found it nice for debugging to have a direct link to the route schedule in the script's output. |
Let's handle this also in smaller pieces. I created a new issue to only talk about the data structure #30 |
Btw. my goal is that the fenix creators have as little code as possible and use as much code from the default creators as possible. Keeping methods in the default creators small and overridable should help with that. |
Route creator default implementation can only happen after #30. Besides the "blacklisted" routes in Fenix logic I see no reason why the default route creator would be different for Fenix. |
We now have a proposal for a standard routes creator. |
Resolved with accepted PR #99 |
The current route creation is very much custom for Florianópolis. After the abstraction work happening in (#9) I'd suggest working on a default implementation for route generation based on OSM's Public Transport Schema 2.
Managua can be a good start as the data quality is very consistent and complying the standard data structure without exceptions.
The text was updated successfully, but these errors were encountered: