none
Locations API by query does not return results based on given user location. RRS feed

  • Question

  • Hi, 

    I am using Locations Api by query.

    I am giving users current location to get more relevant results.

    for example : 

    http://dev.virtualearth.net/REST/v1/Locations?query=san&maxResults=5&key=myKey&userLocation=32.7150,-117.1625

    The query here is "San"  and coordinates are of San Diego.

    Still the results returned are :

    San Poland, San Mali, Sydney, San Russia , San Kazakhstan 

    Why don't I See San Diego as First result 

    Thank You,


    Friday, May 23, 2014 5:14 PM

Answers

  • The userLocation property is given very little weight in the search now as it has caused issues in the past. That said, partial word searches like this are not going to work as you expect. Bing Maps has a database of several billion rows of addresses and locations. There is likely more than a million results that match San. The geocoder is not designed to be an auto complete functionality.

    http://rbrundritt.wordpress.com

    Saturday, May 24, 2014 9:59 AM