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

Add company name to status change #22

Closed
dmklinger opened this issue Jul 2, 2018 · 4 comments
Closed

Add company name to status change #22

dmklinger opened this issue Jul 2, 2018 · 4 comments

Comments

@dmklinger
Copy link
Contributor

also swap ordering of device id and device type. then it's consistently big endian: company > device types > specific device

@hunterowens
Copy link
Collaborator

Shouldn't we know the company name based on what API endpoint is being queried?

@dmklinger
Copy link
Contributor Author

We will have to add a company field to the sql table (unless you want to keep different tables for different companies, which we probably do not), and it is easier to just pull it from them than to manually keep track of the company we are querying and add it.

@thekaveman
Copy link
Collaborator

I agree with @dmklinger here, this would be a useful field to have as part of the data coming down from the API. Although we will know the company, IMHO it is worth some duplication for the added flexibility and scalability of that information being encoded in the data itself.

Imagine a future where there are hundreds of companies operating - it would be great to be able to query the /provider APIs "blindly", where the code doesn't have to know which individual provider it is hitting.

This would also be consistent with the gbfs system_information.name field.

@hunterowens
Copy link
Collaborator

hunterowens commented Jul 4, 2018 via email

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

3 participants