I have a list with 50 items:
var mylocations = [{'id':'A', 'loc':[-21,2]},...,];
How can I in leaflet or JavaScript most efficiently make it such that if I accept an input of a specific location [<longitude>,<latitude>]
, a radius (e.g. 50 miles)... I can get all of the "mylocations"
that fall within that circle?
Using external libraries is fine.