simple-dwd-weatherforecast 2.1.9__py3-none-any.whl → 2.1.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,16 +92,16 @@ def get_from_location(
92
92
  ):
93
93
  if radius_km <= 0:
94
94
  raise ValueError("Radius must be greater than 0")
95
- if latitude < -90 or latitude > 90:
96
- raise ValueError("Latitude must be between -90 and 90")
97
- if longitude < -180 or longitude > 180:
98
- raise ValueError("Longitude must be between -180 and 180")
95
+ if longitude < -90 or longitude > 90:
96
+ raise ValueError("Longitude must be between -90 and 90")
97
+ if latitude < -180 or latitude > 180:
98
+ raise ValueError("Latitude must be between -180 and 180")
99
99
  radius = math.fabs(radius_km / (111.3 * math.cos(latitude)))
100
100
  return get_map(
101
- latitude - radius,
102
101
  longitude - radius,
103
- latitude + radius,
102
+ latitude - radius,
104
103
  longitude + radius,
104
+ latitude + radius,
105
105
  map_type,
106
106
  background_type,
107
107
  image_width,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simple_dwd_weatherforecast
3
- Version: 2.1.9
3
+ Version: 2.1.10
4
4
  Summary: A simple tool to retrieve a weather forecast from DWD OpenData
5
5
  Home-page: https://github.com/FL550/simple_dwd_weatherforecast.git
6
6
  Author: Max Fermor
@@ -1,6 +1,6 @@
1
1
  simple_dwd_weatherforecast/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  simple_dwd_weatherforecast/dwdforecast.py,sha256=wYg7XC9_5rb-ITdjoT-bLaBc_AGqii8d6eNEfdbfXtY,38863
3
- simple_dwd_weatherforecast/dwdmap.py,sha256=TwJMK8nUbRpT755oJO3dPq4xKh40dlAn6yBBC1zFRDw,10932
3
+ simple_dwd_weatherforecast/dwdmap.py,sha256=vN7ePXeLNFHwho9a2I1WONWy7d1588LzvWlEnXsOmFU,10932
4
4
  simple_dwd_weatherforecast/stations.json,sha256=1u8qc2CT_rVy49SAlOicGixzHln6Y0FXevuFAz2maBw,838948
5
5
  simple_dwd_weatherforecast/uv_stations.json,sha256=ADenYo-aR6qbf0UFkfYr72kkFzL9HyUKe4VQ23POGF8,2292
6
6
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -35,8 +35,8 @@ tests/test_update.py,sha256=AIzzHMxcjwQjeTB0l3YFgB7HkGDbuqiHofwy41mS0m4,7440
35
35
  tests/test_update_hourly.py,sha256=7Zl8ml3FTdqw3_Qwr_Tz-sWTzypvrBWmxeig2Vwp_ZQ,1781
36
36
  tests/test_uv_index.py,sha256=tr6wnOyHlXT1S3yp1oeHc4-Brmc-EMEdM4mtyrdpcHg,579
37
37
  tests/test_weather.py,sha256=ZyX4ldUoJpJp7YpiNQwU6Od-nYRay-3qcaDJdNq8fhY,780
38
- simple_dwd_weatherforecast-2.1.9.dist-info/LICENCE,sha256=27UG7gteqvSWuZlsbIq2_OAbh7VyifGGl-1zpuUoBcw,1072
39
- simple_dwd_weatherforecast-2.1.9.dist-info/METADATA,sha256=gTOvvhRKdgsFWUKhiQXp-0zPNnwuBuRLnxoQYj_klEU,12548
40
- simple_dwd_weatherforecast-2.1.9.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
41
- simple_dwd_weatherforecast-2.1.9.dist-info/top_level.txt,sha256=iyEobUh14Tzitx39Oi8qm0NhBrnZovl_dNKtvLUkLEM,33
42
- simple_dwd_weatherforecast-2.1.9.dist-info/RECORD,,
38
+ simple_dwd_weatherforecast-2.1.10.dist-info/LICENCE,sha256=27UG7gteqvSWuZlsbIq2_OAbh7VyifGGl-1zpuUoBcw,1072
39
+ simple_dwd_weatherforecast-2.1.10.dist-info/METADATA,sha256=N4-Ww6ufGE9dq2J9eZ24M708ScdA0AZtsVf30RceCo0,12549
40
+ simple_dwd_weatherforecast-2.1.10.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
41
+ simple_dwd_weatherforecast-2.1.10.dist-info/top_level.txt,sha256=iyEobUh14Tzitx39Oi8qm0NhBrnZovl_dNKtvLUkLEM,33
42
+ simple_dwd_weatherforecast-2.1.10.dist-info/RECORD,,