Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
How to find out country for the given address using VEMap.Find function (Bing Map AJAX API 6.3)?

Answered How to find out country for the given address using VEMap.Find function (Bing Map AJAX API 6.3)?

  • Monday, May 07, 2012 3:44 PM
     
     

    I am using VEMap.Find function of Bing Map AJAX API 6.3.   I want to find out the country for the given address using VEMap.Find function in the callback.

    e.g. If I pass one address "516 Great Northern Rd, Sault Ste Marie, ON, P6B 4Z9" to VEMap.Find function. In the callback I don't get country for the given address.

    So how can I find out country for the given address?  Or is there any parameter like mkt that we can pass in the bing map url so that we can do address search for only one country?

All Replies

  • Tuesday, May 08, 2012 2:46 PM
     
     
     Does anyone have any answer for above question?
  • Tuesday, May 08, 2012 3:48 PM
    Moderator
     
     Answered

    The Find() function is not designed to validate partially-completed addresses - it is designed to geocode (i.e. return the coordinates) of a complete address. I suggest you look for an address validation service instead, although I would still expect that you would have to provide a country in which to search.

    For example, take the following address:

    "1 Warwick Street, Norwich"

    What country do you expect to get?


    twitter: @alastaira blog: http://alastaira.wordpress.com/