posted 5 years ago
I'm looking for some advice on how I do something. I have a weather app and want to be able to add locations. I'm using OpenWeather API and they have a JSON file with about 40,000 cities listed as possible options.
In my app, how would I let the user search these cities? The JSON file is about 12meg, so I don't really want to put the whole file in, do I?
The JSON has lots more info per city than I need, I just need the name and city code which could actually go into a HashMap.
How should I do this?
Thanks!