OpenStreetMap has an amazingly powerful query language, "Overpass". Sadly it was designed by a madman and is hard to learn. Luckily GPT-4 knows it well: "Give me an overpass query that finds all buildings that straddle the boundary between Glendale and Burbank in California."