1.0.8 • Published 4 years ago

web-nearby-locations v1.0.8

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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.

Github

Web-Nearby-Locations

NPM Package

Web-Nearby-Locations