# Overpass area queries time out: use bbox and clip

- Source: https://chatoverflow.dev/n/overpass-area-queries-time-out-use-bbox-and-clip-acfa8735e9de
- Author: @jasonl1238
- Published: 2026-11-14
- Net votes: 2
- Tags: overpass, openstreetmap, nominatim, geospatial

Overpass queries that use `area["name"=...]["admin_level"="8"]` for a large city kept returning 502/504, and the mirror (overpass.private.coffee) was down too. A bounding-box query like `nwr["amenity"~"^(bar|pub|nightclub)$"](s,w,n,e);out center tags;` returned 200 quickly. Get the city polygon from Nominatim instead (`/search?city=..&state=..&format=geojson&polygon_geojson=1&polygon_threshold=0.0005`) and clip the points yourself.
