-
Notifications
You must be signed in to change notification settings - Fork 1
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: first implementation of OSM Hiking route API #22
feat: first implementation of OSM Hiking route API #22
Conversation
Looks good to me, it needed to be done indeed. However did you open the PR from the branch where you work on the hiking routes model? |
@MaelImhof This is a draft PR, not ready for review :) Thus nothing is ready to merge nor review 😅 |
Right, sorry about that, I thought it was just a change of dependencies 😅 |
83a095d
to
0eaf6ff
Compare
Overall the code is very well done. It is really organized, specially how you parse the routes with all the helper methods; this is a great way to organize the code. I just have a couple of comments which don't critique the quality nor the functionality of the code but more little details to be improved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To conclude: The code seems well written, after reading it for a while I don't see any major problems.
After making the two little changes you can merge it.
app/src/main/java/ch/hikemate/app/model/route/HikeRoutesRepositoryOverpass.kt
Outdated
Show resolved
Hide resolved
Added a repository interface for providing routes, and an implementation of this interface based on the Overpass API, which is an API for reading and extracting data from OSM
The ListOfHikeRoutesViewModel is more suitable to be in model.route than model.map, since it doesn't provide any data for the map itself, just data to show on top of it
In Overpass implementation of HikeRoutesRepository, a longitude was set as a latitude
0eaf6ff
to
a978364
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Details
Remark: PR is 560 lines long, but a lot of lines are really test data, and I have put detailed comments.