Calculate closest locations to a latitude and longitude
Depending upon your browser, you may need to view the files from a web server.
The find-locations.js file uses a combined searching and sorting algorithm which is very fast compared to using separate steps. It can return the single closest site, ID and distance, or the n closest sites.
Unzip the file to a suitable location and load the location-search.html into a browser.
- The main demonstration HTML page
- Support code for the HTML page
- A JSON representation of the sitelist.
In your final code you should load the sitelist from DataPoint and cache locally.