|
Hello, is it possible to use latitude and longitude coordinates to sort a list by nearest distance? |
Answered by
krisk
Apr 3, 2026
Replies: 1 comment
|
Late reply — sorry about that. No, Fuse.js is a text fuzzy-search library, so geographic distance isn't something it handles. For sorting by coordinates you'd want something like the Haversine formula or a library built for geospatial queries. |
0 replies
Answer selected by
krisk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Late reply — sorry about that.
No, Fuse.js is a text fuzzy-search library, so geographic distance isn't something it handles. For sorting by coordinates you'd want something like the Haversine formula or a library built for geospatial queries.