Skip to contents

Finds the distance between a point and a dataframe of points using the Haversine formula, and finds nearest stores in each direction. Uses Haversine Formula to account for the curvature of the Earth.

Usage

Haversine_Calculator(df_grocery_only, df_geocode)

Arguments

df_grocery_only

dataframe with API call of grocery stores

df_geocode

dataframe with gps coordinates of store

Value

Distance_Comp_List with nearest store in each direction and the latlong information on those stores

Author

Alex Cory