cmu-delphi / delphi-epidata

An open API for epidemiological data.
https://cmu-delphi.github.io/delphi-epidata/
MIT License
100 stars 68 forks source link

support geo type mapping resolutions #542

Open sgratzl opened 3 years ago

sgratzl commented 3 years ago

coming from #389

e.g. query all counties of the state of California

possible mappings:

krivard commented 3 years ago

this might be more easily implemented in delphi_utils.geomap, possibly as an extension of /variation on get_geo_values():

https://github.com/cmu-delphi/covidcast-indicators/blob/261b3a3868abd1527d8ac9867a8aca78f8ef46eb/_delphi_utils_python/delphi_utils/geomap.py#L559-L576

krivard commented 3 years ago

Now that https://github.com/cmu-delphi/covidcast-indicators/pull/1159 has been merged, the following has to happen:

I don't have any huge preferences on syntax, so long as we avoid the possibility where the same geo_id parameter value could be interpreted as multiple geo types. @sgratzl may have guidance?