- Notifications
You must be signed in to change notification settings - Fork 371
Closed
Labels
Description
8<------------------------ FEATURE REQUEST ------------------------------------
Missing feature
The OpenWeatherMapCurrentData data struct does not include the city ID.
Justification
Returning the city ID would allow back-end implementations to store user preferences based solely on the city ID, rather than coding for tests on whether the stored value is a name or an ID.
Workarounds
I read a stored value and assume it's an ID first and run updateCurrentById(). If the returning data.cityName is of length zero, I then run updateCurrent().
8<------------------------ END FEATURE REQUEST --------------------------------