https://github.com/zainmustafaaa/web-nearby-locations
Simple js library which fetch nearby desired locations based on user input
https://github.com/zainmustafaaa/web-nearby-locations
Last synced: 3 months ago
JSON representation
Simple js library which fetch nearby desired locations based on user input
- Host: GitHub
- URL: https://github.com/zainmustafaaa/web-nearby-locations
- Owner: ZainMustafaaa
- Created: 2020-10-12T10:18:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-15T10:16:07.000Z (over 4 years ago)
- Last Synced: 2025-02-12T14:18:02.161Z (4 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# web-nearby-locations
Simple js library which fetch nearby desired locations based on user input#### Implementation
```sh
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](https://github.com/ZainMustafaaa/web-nearby-locations)## NPM Package
[Web-Nearby-Locations](https://www.npmjs.com/package/web-nearby-locations)