dist_nearest_x.RdFind nearest X values between each starting point in x and possible end points, y.
dist_nearest_x(
x_df,
y_df,
num_nearest = 10L,
x_id = "id",
y_id = "id",
x_lon_col = "lon",
x_lat_col = "lat",
y_lon_col = "lon",
y_lat_col = "lat",
dist_function = "Haversine"
)DataFrame with starting coordinates
DataFrame with ending coordinates
The number of closest points to return
String name of unique identifer column in x_df
String name of unique identifer column in y_df
String name of column in x_df with longitude values
String name of column in x_df with latitude values
String name of column in y_df with longitude values
String name of column in y_df with latitude values
String name of distance function: "Haversine" (default) or "Vincenty"
DataFrame with id of X closest points and distance in meters