1.0.8 • Published 4 years ago
web-nearby-locations v1.0.8
web-nearby-locations
Simple js library which fetch nearby desired locations based on user input
Implementation
const Location = require('web-nearby-locations');
const location = new Location(YOUR_GOOGLE_MAPS_KEY);
location.fetchNearbyLocations(31.520370, 74.358749, 'hospital');
location.fetchNearbyLocations(31.520370, 74.358749, 'bank');
location.fetchNearbyLocations(31.520370, 74.358749, 'food');
This will return a promise object including array of nearby places/locations.