So, I have a map, which is being controlled/displayed via the Flex API.
The user has drawn a polygon on the map; this is working fine, I'm easily able to retrieve the coordinates of the points on the polygon, and so on.
What I'd like to accomplish -- but have zero idea HOW to accomplish -- is this. I have no idea where place names would even come from, if I need to include another map layer, or some other external data source, or what... so please treat me as a bit of a newbie here.. 🙂
Given those polygon coordinates, I want to find a reasonable place name. By "reasonable", I mean something vaguely similar to, say, finding the smallest named place whose boundaries completely encompass the polygon. In other words, if we've got place names for New York State, New York City, Manhattan, and the Upper East Side, and I've drawn a polygon which is completely inside of Manhattan and contains parts of the Upper East Side, Central Park and Upper West Side, then the ideal name to return would be "Manhattan". It would also be fine if I was to specify the "minimum size" of a named place, e.g. neighborhood level as opposed to, say, exact street address, and then I was able to get all the relevant place names that contain one of my polygon's vertices.
Is this something that can be done? What resources (aside from the standard ArcGIS online satellite imagery map, which I'm currently using as my only map layer) will I need?
Thanks!
-Dan