store_locator: Store Locator

Description Usage Arguments Value References Examples

View source: R/store_locator.R

Description

This function helps locate nearest Walmart Stores via API. It lets users search for stores by latitude and longitude, by zip code and by city.

Usage

1
2
store_locator(apikey = NULL, city = NULL, lat = NULL, lon = NULL,
  zip = NULL)

Arguments

apikey

Your API access key authorized by Walmart API (Required)

city

City name, capitalized (Optional)

lat

Latitude (Optional)

lon

Longitude (Optional)

zip

Zip (Optional)

Value

Returns an RDS file named "store_locations_output.RDS".

References

https://developer.walmartlabs.com/docs/read/Store_Locator_API

Examples

1
2
apikey = "YOUR API KEY"
store_locator(apikey, city = "NEW YORK")

Elkamao/walmartR documentation built on May 24, 2019, 5:02 a.m.