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
- 参数:
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
- 返回:
gdf – The output DataFrame
- 返回类型:
DataFrame