restaurant-location-search-api
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "restaurant-location-search-api", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "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.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -52,2 +52,64 @@ # restaurant-location-search-api | ||
## Example JSON Response | ||
Below is an example of the JSON response returned by the `getLocations` function for Taco Bell locations: | ||
```json | ||
{ | ||
"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 | ||
] | ||
} | ||
``` | ||
## Supported Restaurants | ||
@@ -54,0 +116,0 @@ |
19146
128