cityName property

String? cityName
getter/setter pair

Used when you want to obtain the weather using a city name instead of longitude and latitude IMPORTANT: In some rare cases, two different cities from different parts of the world may have the same name. In this case, it is unpredictable which city's forecast you may receive. If you happen to successfully receive results but find on checking them that they are wildly different from what they should be (and have through sheer frustration reached all the way here, in which case, Hi!) consider doing the same query with equivalent longitude and latitude values and see if the problem persists.

Implementation

String? cityName;