How can I reproduce the same result of this tool using ArcPy?
Here are the tables I want to join:
Here's the result im getting from ArcMap tool:
I wrote Python code to reproduce the same result:
arcpy.SpatialJoin_analysis(gpsFC, hotspotFC, "test2.shp", join_operation="JOIN_ONE_TO_ONE",
join_type = "KEEP_COMMON",
match_option="CLOSEST_GEODESIC",
search_radius=0.001729,
distance_field_name="distance")
but I'm not getting the same result, instead I'm getting this one:




