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?
- Moved by Richard_BrundrittMicrosoft Employee, Owner Saturday, March 10, 2012 11:13 AM (From:Bing Maps: Map Control and Web services Development)
All Replies
-
Friday, September 30, 2011 8:42 AMModerator
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 AMI'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 AMModerator
http://dev.virtualearth.net/REST/v1/Locations?locality=Manchester&countryRegion=UK&key=BINGMAPSKEY
twitter: @alastaira blog: http://alastaira.wordpress.com/- Marked As Answer by Richard_BrundrittMicrosoft Employee, Owner Friday, November 11, 2011 10:55 PM
-
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;

