Skip to content

Commit bb4db9d

Browse files
authored
Merge pull request #165 from MSameerAbbas/patch-1
Update filter.py
2 parents 685e8fe + 74359d4 commit bb4db9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mapillary/utils/filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def haversine_dist(data: dict, radius: float, coords: list, unit: str = "m") ->
342342

343343
# If the calculated haversince distance is less than the radius ...
344344
if (
345-
haversine.haversine(coords, feature["geometry"]["coordinates"], unit=unit)
345+
haversine.haversine(coords[::-1], feature["geometry"]["coordinates"][::-1], unit=unit)
346346
< radius
347347
):
348348
# ... append to the output

0 commit comments

Comments
 (0)