covid19 icon indicating copy to clipboard operation
covid19 copied to clipboard

List of countries and Provinces

Open fardavide opened this issue 4 years ago • 4 comments

Please provide endpoints for get plain lists of countries and provinces

fardavide avatar Mar 07 '20 21:03 fardavide

We’re working on it for Italian provinces. We’ll update you ASAP.

esenac avatar Mar 07 '20 21:03 esenac

Sure, didn't want to push, just wanted to highlight my interest :)

fardavide avatar Mar 07 '20 21:03 fardavide

Hi @4face-studi0, for an endpoint of plain lists of countries or provinces you mean something like this?

/countries.json

[ "us", "italy" ]

/us/provinces.json

[ "santa-clara-ca", "san-diego-county-ca" ]

The countries ad provinces at the moment could be extracted from the children objects.

enrichman avatar Mar 08 '20 09:03 enrichman

@enrichman yes, exactly. It's true that they could be extracted, but it's sub-optimal, specially on mobile devices, where we need to download and parse a big amount of """trash""" data :)

fardavide avatar Mar 08 '20 09:03 fardavide