Skip to content

Commit 2137a16

Browse files
committed
Update readme
1 parent 0b32da0 commit 2137a16

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,11 @@ try {
234234

235235
### Standardized Weather Conditions
236236

237-
One of the key features of this library is the standardization of weather conditions across different providers. This ensures that your application receives consistent condition values regardless of which provider is used.
237+
One of the key features of this library is the standardization of weather conditions across different providers.
238+
This ensures that your application receives consistent condition values regardless of which provider is used.
238239

239-
For OpenWeather, the library uses the icon codes provided by the API to derive standardized conditions, which ensures accurate mapping regardless of the description text. For NWS, the library uses the textDescription field for standardization.
240+
For OpenWeather, the library uses the Weather Condition ID codes provided by the API to derive standardized conditions.
241+
For NWS, the library uses the textDescription field for standardization.
240242

241243
#### Available Standardized Conditions
242244

@@ -293,7 +295,7 @@ console.log(weather.conditions.value); // Standardized value (e.g., "Clear")
293295
console.log(weather.conditions.original); // Original provider text (e.g., "clear sky")
294296
```
295297

296-
For OpenWeather, the standardization is based on the API's icon codes as documented at [OpenWeather Weather Conditions](https://openweathermap.org/weather-conditions#Weather-Condition-Codes-2), which provides more accurate and consistent results compared to using the description text.
298+
For OpenWeather, the standardization is based on the API's Weather Condition ID codes as documented at [OpenWeather Weather Conditions](https://openweathermap.org/weather-conditions).
297299

298300
This allows you to display either the original detailed condition from the provider or use the standardized value for consistent UI elements or logic across your application.
299301

0 commit comments

Comments
 (0)