I hit using JavaScript here:
https://github.com/pgkelley4/city-boundaries-google-maps
It basically boils down to finding a relation that OpenStreetMap preserves the city boundaries like.
To get the scope, I used the following query:
area[name="Seattle"]["is_in:state_code"="WA"];foreach(out;);
Or if it doesn't find anything, go through node to find any related areas:
node[name="New York"][is_in~"NY"];foreach(out;is_in;out;);
, 3600000000 , . :
(relation(" + relationID + ");>;);out;
, , :
http://overpass-api.de/query_form.html
, , - , . . GitHub :
http://wiki.openstreetmap.org/wiki/Relation:multipolygon/Algorithm
, OpenStreetMap . - , , , -.