Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
restaurant-location-search-api
Advanced tools
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
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 )Below is an example of the JSON response returned by the getLocations
function for Taco Bell locations:
{
"nearByStores": [
{
"storeStatus": "openNow",
"pickupStoreStatusForLocation": "Activated",
"phoneNumber": "+12122330848",
"storeNumber": "035336",
"timeZone": "GMT-05:00",
"roundUpFlag": true,
"todayBusinessHours": {
"openTime": "07:00",
"closeTime": "23:00"
},
"delivery": true,
"address": {
"streetAddress": "123 Example St",
"city": "New York",
"state": "NY",
"zipCode": "10001"
},
"geoPoint": {
"latitude": 40.712776,
"longitude": -74.005974
},
"formattedDistance": "0.30 Miles"
},
{
"storeStatus": "openNow",
"pickupStoreStatusForLocation": "Activated",
"phoneNumber": "+16468239315",
"storeNumber": "035828",
"timeZone": "GMT-05:00",
"roundUpFlag": true,
"todayBusinessHours": {
"openTime": "07:00",
"closeTime": "22:00"
},
"delivery": true,
"address": {
"streetAddress": "456 Another Rd",
"city": "New York",
"state": "NY",
"zipCode": "10002"
},
"geoPoint": {
"latitude": 40.715776,
"longitude": -74.015974
},
"formattedDistance": "1.1 Miles"
}
// Additional stores omitted for brevity
]
}
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
The npm package restaurant-location-search-api receives a total of 0 weekly downloads. As such, restaurant-location-search-api popularity was classified as not popular.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.