engine: filter all searched to Great Britain only

This commit is contained in:
Oliver Gaskell 2025-11-02 11:30:34 +00:00
parent cc02dd122b
commit 23c71ac642
No known key found for this signature in database
GPG key ID: F971A08925FCC0AD

View file

@ -42,7 +42,7 @@ def fetch_data(brand: str, cache: bool = True) -> list[tuple[float, float]]:
api = overpy.Overpass() api = overpy.Overpass()
filters = BRANDS[brand] filters = BRANDS[brand]
query = api.query(f"nwr{filters}; out center;") query = api.query(f"area[\"name\"=\"Great Britain\"]->.searchArea;nwr{filters}(area.searchArea); out center;")
result = [] result = []