Skip to content

OWM data struct does not include the city ID #137

@Tiogaplanet

Description

@Tiogaplanet

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 --------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions