none
Mismatch observed in Lat and Long returned by Bing Map RRS feed

  • Question

  • Hello,

    I am having store finder functionality. It filters out and shows nearest top 5 stores when you give some criteria. In my case what is happening is user enters Harrow as search criteria to get top 5 nearest stores and expects Harrow to be one of the top 5.  Bing Map returns me following details when Harrow is searched

    https://dev.virtualearth.net/REST/v1/Locations?o=xml&key=<replace your key>&q=Harrow, uk

    Location

            Name Harrow, United Kingdom
            Point
                Latitude 51.480098724365234
                Longitude -0.46400994062423706

    And we have store's latitude and longitude stored in our table for Harrow, which says 

    51.580402374267 -0.34307399392128

    When store finder calculates distance between these two points it does not lists in top 5 and therefore users get confused. 

    Now the question is whether Bing Map returned me wrong Lat and Long or store's lat and long values in my table is wrong? To further investigate I used google map to search Harrow and it returned me Lat Long values such as 51.580559 -0.34199500 which looks close to stored value in my table. Now that leads me to a suspicion whether Bing Map is giving me incorrect result. I have not reached to any conclusion therefore thought of posting this scenario in the forum to get more views. Is it possible that for a same location Bing and Google can give different results? 

    please revert back to me for any further details, if you want.

    Thanks in advance

    Jaydeep

    Thursday, March 3, 2016 6:25 AM

Answers

  • This is a strange issue as one of people on the Bing Maps team lives in Harrow, UK and never seen this behavior before now. Looks like a new issue. Note that when it comes to coordinates for area's there is always differences between data providers as any coordinate within the boundary of the area is a valid answer. Some data providers use the geographic center, while others calculate the center based on the population density. In any case it looks like this has been resolved on the Bing Maps consumer site (http://bing.com/maps) which is where new updates usually show up before being released into the Bing Maps API's. We should see this in the Bing Maps API's in the next couple of months.

    http://rbrundritt.wordpress.com

    Friday, March 4, 2016 5:59 PM
  • It's a different query so logic relevance is different, thus different results. In this case when searching for Harrow, UK, the geocoder thinks that the one result it returns is much more inline with what you asked then the other locations that show up when adding "Greater London".

    On the consumer site, search for "Harrow, UK", then right click on the pushpin. You will see the coordinates.


    http://rbrundritt.wordpress.com

    Tuesday, March 8, 2016 7:49 PM

All replies

  • This is a strange issue as one of people on the Bing Maps team lives in Harrow, UK and never seen this behavior before now. Looks like a new issue. Note that when it comes to coordinates for area's there is always differences between data providers as any coordinate within the boundary of the area is a valid answer. Some data providers use the geographic center, while others calculate the center based on the population density. In any case it looks like this has been resolved on the Bing Maps consumer site (http://bing.com/maps) which is where new updates usually show up before being released into the Bing Maps API's. We should see this in the Bing Maps API's in the next couple of months.

    http://rbrundritt.wordpress.com

    Friday, March 4, 2016 5:59 PM
  • What is interesting is if I search for Harrow, Greater London I get multiple locations returned by Bing Map API . please see below list of locations

    Harrow, London, London, United Kingdom 
    Harrow Weald, London, London, United Kingdom 
    South Harrow, London, London, United Kingdom 
    West Harrow, London, United Kingdom 
    North Harrow, London, London, United Kingdom 

    So question is why can't these locations be returned if I just give Harrow, UK?

    https://dev.virtualearth.net/REST/v1/Locations?o=xml&key=<replace your key>&q=Harrow,%20Greater%20London

    In the consumer site, how will I get to see Lat, Long? e.g. if I type Harrow, UK on the consumer site, then how will I see Lat, Long that was returned. I don't see any option which displays Lat, Long along with other details. In fact I would suggest to show Lat, Long on the map somewhere, if it is not showing currently.

    Thanks

    Jaydeep




    • Edited by JaydeepV Tuesday, March 8, 2016 10:35 AM added virtualearth link
    Tuesday, March 8, 2016 10:07 AM
  • It's a different query so logic relevance is different, thus different results. In this case when searching for Harrow, UK, the geocoder thinks that the one result it returns is much more inline with what you asked then the other locations that show up when adding "Greater London".

    On the consumer site, search for "Harrow, UK", then right click on the pushpin. You will see the coordinates.


    http://rbrundritt.wordpress.com

    Tuesday, March 8, 2016 7:49 PM