Answered Bing Maps not finding cities in the UK

  • Friday, September 30, 2011 8:31 AM
     
     

    I'm having a problem with my store finder app finding cities in the uk. e.g Manchester

    Is there a way to set the map locality so that bing maps recognizes UK city and town names?

All Replies

  • Friday, September 30, 2011 8:42 AM
    Moderator
     
     

    Works fine for me. What are you using - the REST Locations API? The SOAP Find service? Both of these allow you to specify a Country/Region property that will narrow down a search to a particular territory.

    Are you getting no records found, or a "Manchester" somewhere else?


    twitter: @alastaira blog: http://alastaira.wordpress.com/
  • Friday, September 30, 2011 10:02 AM
     
     
    I'm using REST Locations API. It works if I place 'uk' at the end of the city name but don't want to do that. How can I specify the country?
  • Friday, September 30, 2011 10:53 AM
    Moderator
     
     Answered
    http://dev.virtualearth.net/REST/v1/Locations?locality=Manchester&countryRegion=UK&key=BINGMAPSKEY
    twitter: @alastaira blog: http://alastaira.wordpress.com/
  • Monday, October 10, 2011 10:55 AM
     
     

    Hi

    Having trouble specifying the country/region property in my url request.

    Could you show me how I would include '&countryRegion=UK' into my URL request below.

    Thanks Geoff

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    var geocodeRequest = "http://dev.virtualearth.net/REST/v1/Locations/"
           + document.getElementById('address').value
           + "?en-GB&"
           + "?output=json"
           + "&jsonp=GeocodeCallback"
           + "&key=" + BingMapsKey;