I need to find the closest point to me. RRS feed

  • General discussion

  • I have a Bing Map control where I'm adding a set of pins (locations).

    The thing is, I want to show which of those pins is closer to the current location. I know there are tons of implementation of the algorithm out there, I just want to know if the WinJS framework or WinRT has some sort of out of the box function I could use, before I start coding it myself.




    • Changed type Song Tian Thursday, December 27, 2012 10:19 AM
    Thursday, December 20, 2012 3:58 PM

All replies

  • I think that the new Spatial Data Services might help you:

    Example here -> http://www.bingmapsportal.com/ISDK/AjaxV7#SpatialDataServices1

    Dave Paquette @Dave_Paquette www.davepaquette.com

    Thursday, December 20, 2012 5:27 PM
  • Nop, I don't see any help with what I want... having that said, I don't want to call an external service in order to find that out if I can solve it locally with javascript. I was wondering if the WinJS framework or the Bing maps control for Win8 had something like that for me to use.


    Friday, December 21, 2012 7:48 PM
  • My GIS friends tell me that the "what point is closest to me" problem is significantly more difficult that it initially appears.  I am not aware of any javascript libraries that will help you solve this problem locally.  

    Dave Paquette @Dave_Paquette www.davepaquette.com

    Friday, December 21, 2012 9:13 PM