Skip to content

Commit 3f1442c

Browse files
committed
Fix Met Office nearest coordinate query
1 parent 248a7a1 commit 3f1442c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

publishers/met_office_datahub/met_office_datahub_publisher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ def _get_json(self, url: str) -> dict:
267267

268268
def nearest(self, lat: float, lon: float) -> dict:
269269
query_variants = [
270-
{"latitude": lat, "longitude": lon},
271-
{"lat": lat, "lon": lon},
270+
{"lat": f"{lat:.2f}", "lon": f"{lon:.2f}"},
271+
{"latitude": f"{lat:.2f}", "longitude": f"{lon:.2f}"},
272272
]
273273
errors = []
274274
for query in query_variants:

0 commit comments

Comments
 (0)