Skip to contents

Finds the distance to the nearest store in each quadrant. No return, just sets four global variables

Usage

Quadrant_Calculator(df_grocery_only, df_geocode)

Arguments

df_grocery_only

a data frame containing only grocery store observations. Returned from a call to the googleway::google_places api.

df_geocode

a data frame containing only the lat and lng values of a geocoded address. The geocode is returned from googleway::google_geocode.

Value

this function returns a list of the four distances for the closest stores in each quadrant and the data frame 'df_circle_buffer' to be inherited by DSPGrocery::Create_Circle_Buffer.

Author

Alex Cory