Learn R Programming

walmartAPI (version 0.1.5)

store_locator: Locale nearby Walmart stores

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

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.

Value

A tibble with 12 columns in base response format.

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.

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataLab