[QUESTION] Is there a way to know if a location has data without making a call for measurements?
JuriKiin opened this issue · 2 comments
JuriKiin commented
I'm trying to load data for multiple locations. In order to limit the amount of API calls, I'm wondering what's the best way to check if a location has data before adding it to a list?
(In order to prevent empty locations from appearing in that list)
dolugen commented
Hi @JuriKiin
Are you filtering from locations in a certain area? Then you can use the count
value from the locations endpoint.
If you have a list of locations (US-0001, US-0002 etc), you would need to individually request the location and look at the count
value, as well.
Does that answer your question?
JuriKiin commented
It does thanks! I had an issue with that count value for a few locations,
so was reaching out about any other solutions that existed in the /location
endpoint.
Thanks I appreciate it!!
Juri
…On Mon, Oct 12, 2020, 13:12 Dulguun Battulga ***@***.***> wrote:
Hi @JuriKiin <https://github.com/JuriKiin>
Are you filtering from locations in a certain area? Then you can use the
count value.
If you have a list of locations (US-0001, US-0002 etc), you would need to
individually request the location and look at the count value, as well.
Does that answer your question?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#453 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADVK7YQETFHZK43P6FXCYCTSKNPJFANCNFSM4QUDTSVA>
.