Open n8geo opened 6 years ago
Hi N8geo,
You are correct that our documentation and actual API are inconsistent WRT groupby
valid arguments. However, I am afraid the issue is slightly deeper, in that I can't commit that the groupby
argument actually changes the API function whatsoever. It probably needs to be deprecated as a whole from the API.
We have started an internal discussion to this end. But at this point the most relevant answer is that the docs are definitely wrong (both in MesoPy and our online resources) and the API error output is correct, it will only allow MNET, GACC and SUBGACC as values (before it does nothing with them)
When I make requests and use the groupby keyword for methods such as: latest, the groupby keyword is limited to MNET, GACC, and SUBGACC and other key words result in a MesoPyError.
Docs state: groupby: string, optional Results can be grouped by key words: state, county, country, cwa, nwszone, mwsfirezone, gacc, subgacc e.g. groupby='state'
However, behavior is: latest = meso.latest(stid=','.join(afc), groupby='nwszone')
MesoPyError Traceback (most recent call last)