Ergast v Official API #202
BrightDV
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Ergast references both the deprecated Ergast API and its replacement Jolpica-F1 API (which is compliant with the deprecated API).
Official API references the API used in the official mobile app and on the official website.
Why is it so complicated to choose one?
Both APIs have downsides, no one is perfect...
So here is the recap:
So why not use both?
I used to do that, but it was really hard to maintain. Each season required a brand-new converter linking every circuit from Ergast to the Official API's version, every driver to its image, every circuit to its image... (see https://github.com/BrightDV/BoxBox/blob/main/lib/helpers/convert_ergast_and_formula_one.dart and winter updates)
Therefore, there were many converters, which meant many things to maintain, needing a full app update on every change.
My current goal is to remove the need for a maintainer on the data, so even if I can't work on the app (and that there are no breaking changes in the API) the app can still work flawlessly.
Solutions
As you may have seen, I lately pushed towards using only the Official API (now default setting on fresh install). Since Ergast's deprecation (not Jolpica's) at the end of 2024, I wrote the app with the Official API only in mind. (best example: the new Circuit Screen).
However, an issue was raised when I removed the results tab from the Details Screen (#200) leading to this discussion. Thus, the need of a better solution is needed.
Side-note: there are currently no analytics in the app (and this won't change!), but I don't know what are the (most) used part of the app. Whenever I remove something, it is because it is either broken or because I never use it, so I think that it is the case for many users… Therefore, I may create a poll every year to understand better how the app is used and what could be improved/added (the main feedback I have of the app is my feedback…).
Current ideas
The 3rd idea is the one I am currently planning to do.
Plans for the future
I will not have more time next year to work on the app as I would want to, but it should be better in 2 or 3 years.
I want to make Box, Box! a universal app for motorsport racing, supporting many championships! It would require a huge rewrite of many part of the app, but I already started this when adding Formula E. With this done, both API could be used to follow the same championship (third idea).
I know that many apps die under huge rewrites, so I will not rewrite it from scratch, but rather adapt the code.
If you read this to the end, well done…
If you have any idea or suggestion, please share it!
Beta Was this translation helpful? Give feedback.
All reactions