'geopands sjoin_nearest returns only the nearest result

I used the new function sjoin_nearest in geopands 0.10. According to the official document, "Results will include multiple output records for a single input record where there are multiple equidistant nearest or intersected neighbors". I only got one return which is the nearest result, here is my code

street_geo.crs = {'init':'epsg:4326'}
buf = mcd_street_geo.copy()
buf=buf.to_crs({'init':'epsg:3857'})
locationgeo = gpd.GeoDataFrame(location,geometry = 'geometry')
locationgeo.crs = {'init':'epsg:4326'}
locationgeo=locationgeo.to_crs(3857)
merge_test=buf.sjoin_nearest(locationgeo,max_distance=200,distance_col='distance')


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source