-
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
Voi eScooter from raumobil API/Platform #17
Conversation
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.
This PR would revert numerous changes in the main branch.
Did you start your developmet on the latest code version? If not, please rebase your changes to the current main branch and do a force push of branch voi-raumobil.
Ok thanks, I will rebase the changes to the current main branch and repush to the voi-raumobil branch. |
2e5fb42
to
c0890dc
Compare
The PR have now been rebased with the main branch and force-pushed back to voi-raumobil branch. |
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.
I left some review comments which should be addressed before merging.
Before commiting, you should run
ruff --fix x2gbfs
black x2gbfs
mypy x2gbfs
and fix remaining issues. I'll provide a Makefile and pre-commit hook in another PR, to have these validations run before commiting and assist in fixing them.
0875239
to
5384e01
Compare
Thank you. Base on your reviews, I have now amended the branch, validated the commits and pushed back to the branch, but
|
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.
Seems like the rebase did not work out well. This PR contains changess to a number of files which should not be affected.
Some linting issues should be fixed as well.
5384e01
to
b5e6eb9
Compare
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.
I had a couple of remarks, that should be addressed.
I further suggest to wait with merging this PR, until credentials for the API are available and the provider can be tested against the real API.
config/voi-raumobil.json
Outdated
{ | ||
"feed_data": { | ||
"system_information": { | ||
"email": "[email protected]", |
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.
I think this should be voi's support email, not raumobil's.
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.
Since we currently have no direct contact with VOI and do not know the support email, the email from raumobil was used pending the time we establish contact with VOI.
Raumobil also operates the API where we pull the data, or what do you think?
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.
This should be the contact email for users of the sharing service, not for feed integrators. https://www.voi.com/de/legal-notice/ provides a support email address which seems to be appropriate
26fd8e9
to
4fee375
Compare
As already discussed in our meeting, the access credentials are available and have been tested with this PR. |
51b9b7f
to
f7b3985
Compare
config/voi-raumobil.json
Outdated
"name": "voi scooter karlsruhe pricing plan", | ||
"per_min_pricing": [ | ||
{ | ||
"interval": 60, |
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.
Spec says:
Interval in minutes at which the rate of this segment is either reapplied indefinitely, or up until (but not including) the end minute, if end is defined.
so interval should be 1
config/voi-raumobil.json
Outdated
"currency": "EUR", | ||
"description": "1 EURO + 0,22 EURO/Minute.", | ||
"is_taxable": false, | ||
"name": "voi scooter karlsruhe pricing plan", |
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.
The pricing plan's name is potentially displayed. I suggest to label it in German, as feed language is specified i system_information
as de
.
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.
I suggest some final changes
The suggestions have now been implemented |
Could you rebase the branch on main, as it can't be merged due to conflicts |
62fdd2d
to
27bc53a
Compare
It has now been rebased to main branch and it shows above "This branch has no conflicts with the base branch". I guess there is no more conflict. |
1e013fa
to
94bc672
Compare
94bc672
to
89ad21e
Compare
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.
Thank you!
An Implementation of a new provider called VOI eScooter and the Data is available on raumobil GmbH API/Platform. Since the eScooters are free-floating and not station-based, the gbfs_transformer.py was modified aside the "BaseProvider" stated in the documentation.