This example queries data from CARTO, uses the geolocation API to get the user's position, and finds the nearest three features.
Note: geolocation appears blocked within bl.ocks.org.
https://code.jquery.com/jquery-3.1.0.min.js
https://unpkg.com/leaflet@1.0.1/dist/leaflet.js