@@ -39,30 +39,6 @@ foreach ($current->conditions() as $condition) {
3939}
4040```
4141
42- Configure units and language for a request:
43-
44- ``` php
45- use ProgrammatorDev\OpenWeatherMap\Enum\Language;
46- use ProgrammatorDev\OpenWeatherMap\Enum\Units;
47-
48- $current = $api
49- ->oneCall()
50- ->withUnits(Units::IMPERIAL)
51- ->withLanguage(Language::PORTUGUESE)
52- ->current(38.7223, -9.1393);
53- ```
54-
55- Measurement getters return nullable values. Related methods provide the unit
56- and a formatted value. With the default metric configuration, for example:
57-
58- ``` php
59- use ProgrammatorDev\OpenWeatherMap\Enum\Unit;
60-
61- $current->temperature(); // 24.34
62- $current->temperatureUnit(); // Unit::CELSIUS
63- $current->temperatureWithUnit(); // '24.34 °C'
64- ```
65-
6642## Minute Timeline
6743
6844See OpenWeather's
@@ -241,7 +217,7 @@ these getters return nullable floats without conversion.
241217
242218## Timeline Pagination
243219
244- The 15-minute, one- hour, and one- day timelines support pagination.
220+ The 15-minute, hour, and day timelines support pagination.
245221
246222``` php
247223$timeline = $api->oneCall()->hourTimeline(
@@ -268,6 +244,34 @@ The availability checks and URL getters do not make another API request.
268244is available and otherwise return ` null ` . The library does not fetch every page
269245automatically. Each page navigation sends a separate API request.
270246
247+ ## Units And Language
248+
249+ Current and timeline requests use the client configuration by default. Use
250+ ` withUnits() ` and ` withLanguage() ` to change those values for one request
251+ chain.
252+
253+ ``` php
254+ use ProgrammatorDev\OpenWeatherMap\Enum\Language;
255+ use ProgrammatorDev\OpenWeatherMap\Enum\Units;
256+
257+ $current = $api
258+ ->oneCall()
259+ ->withUnits(Units::IMPERIAL)
260+ ->withLanguage(Language::PORTUGUESE)
261+ ->current(38.7223, -9.1393);
262+ ```
263+
264+ Measurement getters return nullable values. Related methods provide the unit
265+ and a formatted value. With the default metric configuration, for example:
266+
267+ ``` php
268+ use ProgrammatorDev\OpenWeatherMap\Enum\Unit;
269+
270+ $current->temperature(); // 24.34
271+ $current->temperatureUnit(); // Unit::CELSIUS
272+ $current->temperatureWithUnit(); // '24.34 °C'
273+ ```
274+
271275## Alert
272276
273277See OpenWeather's
0 commit comments