transbigdata.ckdnearest

transbigdata.ckdnearest(dfA_origin, dfB_origin, Aname=['lon', 'lat'], Bname=['lon', 'lat'])

Search the nearest points in dfB_origin for dfA_origin, and calculate the distance

Parameters:
  • dfA_origin (DataFrame) – DataFrame A

  • dfB_origin (DataFrame) – DataFrame B

  • Aname (List) – The column of lng and lat in DataFrame A

  • Bname (List) – The column of lng and lat in DataFrame A

Returns:

gdf – The output DataFrame

Return type:

DataFrame