npm install nearest-db-stations
const nearestStations =const latitude = 52509647;const longitude = 13375944;const stations = ;// Output as in db-stations
nearestStations(longitude, latitude[, maxDistance, maxResults])
Returns an array of the closest points from a given location in order of increasing distance.
longitude: query point longitude.
latitude: query point latitude.
maxDistance: (optional) maximum distance in meters to search within (
maxResults: (optional) maximum number of points to return (
If you have a question, found a bug or want to propose a feature, have a look at the issues page.