Open lshillman opened 2 years ago
The World Bank API we'll be using for getting GDPs requires us to pass two- or three-letter country codes as parameters. We'll need to find an autosuggest widget and fill it with these country values.
Here are the values (I've tested several 3-letter codes with the API and all have worked): https://www.iban.com/country-codes We could either copy this list into our widget or use a countries API like this: https://restcountries.com/v3.1/name/peru
Here's a possible autocomplete library we could use: https://www.sitepoint.com/javascript-autocomplete-widget-awesomplete/
Note: a non-jQuery autocomplete library is "a technology we haven't used before" :D
The more I research, the more I'm leaning toward a basic dropdown. I hate this because it's not the best UX (there are about 250 items in the country list), but it'll work for our MVP.
The World Bank API we'll be using for getting GDPs requires us to pass two- or three-letter country codes as parameters. We'll need to find an autosuggest widget and fill it with these country values.
Here are the values (I've tested several 3-letter codes with the API and all have worked): https://www.iban.com/country-codes We could either copy this list into our widget or use a countries API like this: https://restcountries.com/v3.1/name/peru
Here's a possible autocomplete library we could use: https://www.sitepoint.com/javascript-autocomplete-widget-awesomplete/
Note: a non-jQuery autocomplete library is "a technology we haven't used before" :D