store_locator: Locale nearby Walmart stores

Description Usage Arguments Details Value Examples

View source: R/store_locator.R

Description

store_locator helps locate nearest Walmart Stores by letting you users search for stores by latitude and longitude, by zip code and by city.

Usage

1
2
store_locator(key = auth_cache$KEY, lat = NULL, lon = NULL, city = NULL,
  zip = NULL, list_output = FALSE)

Arguments

key

Your API access key.

lat

latitude.

lon

longitude.

city

city.

zip

zip code.

list_output

Indicator for list output.

Details

An API key will be required to run this function and can be acquired by creating an account on the following website https://developer.walmartlabs.com/member.

For more information refer to the original documentation https://developer.walmartlabs.com/docs/read/Store_Locator_API.

Value

A tibble with 12 columns in base response format.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
key <- "************************"

store_locator(key = key, lat = 29, lon = -95)

store_locator(key = key, city = "Houston")

store_locator(key = key, zip = 77063)

store_locator(key = key, zip = 77063, list_output = TRUE)

## End(Not run)

EmilHvitfeldt/walmartAPI documentation built on April 23, 2020, 8:26 a.m.