Microsoft Developer Network > Forums Home > Windows Live Developer Forums Forums > Bing Maps: Map Control Development > How can I attribute a location on a map to a specific county
Ask a questionAsk a question
 

QuestionHow can I attribute a location on a map to a specific county

  • Thursday, November 05, 2009 5:07 PMSorcron Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    How can I attribute a location on a map to a specific county if we are not capturing the county in the text of the input screen.  For example, I enter 25 North 5th St., Camden, New Jersey.  Bing Maps can find it and map it, however, when I run a mapping search for Camden County where Camden, N.J. is located, I cannot get it to retieve that data.  Is there a plug in or seperate data string we can acquire or is there something built into the system that we are just missing?  Thank you in advance.

All Replies

  • 6 minutes agoRichard_BrundrittMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    One option is to store the polygon data for the counties in a SQL2008 database and then use the built in spatial tools to determine which polygon your data point falls in. Out side of this method you may be able to parse this information from either a geocode or reverse geocode result, however this would not work all the time.

    Windows Live Developer MVP - http://rbrundritt.spaces.live.com