Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
restaurant-location-search-api
Advanced tools
Readme
A Node.js package that serves as an unofficial API wrapper, providing a unified interface to fetch restaurant locations from various chains without the need for Google Maps API, making it a cost-free solution. This package leverages the specific, unofficial APIs of supported restaurants such as McDonald's, Wendy's, Chipotle, Burger King, Popeyes, and Taco Bell, offering a simplified way to retrieve locations based on latitude and longitude. It's designed for developers who need to integrate restaurant location functionalities into their applications seamlessly, with plans to expand support to more restaurant chains in the future.
Use npm to install restaurant-location-search-api
:
npm install restaurant-location-search-api
After installation, require the package in your Node.js project and use the functions provided to fetch restaurant locations.
const getLocations = require('restaurant-location-search-api');
// Fetch nearest McDonald's location
getLocations('tacoBell', { lat: 40.712776, long: -74.005974 }, '1000', '1', true)
.then(fetchedLocations => { console.log( fetchedLocations ) } )
.catch(console.error);
// Fetch locations for other supported restaurants
getLocations('burgerKing', { lat: 40.712776, long: -74.005974 }, '5000', '5')
.then(fetchedLocations => { console.log( fetchedLocations ) } )
.catch(console.error);
getLocations(spotName, geoObject, radius, maxResults, nearbyOnly=false)
Fetches restaurant locations based on the specified parameters.
lat
(latitude) and long
(longitude) properties.true
to fetch only the nearest location. ( might not work for all restuarants )More coming soon!
Contributions are welcome! If you'd like to add support for more restaurant chains or improve the package, please open a pull request.
FAQs
A Node.js package that serves as an unofficial API wrapper, providing a unified interface to fetch restaurant locations from various chains without the need for Google Maps API, making it a cost-free solution. This package leverages the specific, unoffici
We found that restaurant-location-search-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).