Skip to content

Add Nearby sort option for location-based listing results#2836

Merged
Armanul46 merged 4 commits into
sovware:developmentfrom
Armanul46:feature/nearby
Apr 29, 2026
Merged

Add Nearby sort option for location-based listing results#2836
Armanul46 merged 4 commits into
sovware:developmentfrom
Armanul46:feature/nearby

Conversation

@Armanul46
Copy link
Copy Markdown
Collaborator

@Armanul46 Armanul46 commented Apr 27, 2026

Nearby Sort Feature

Nearby is a new sort option for location-based searches. It lets users sort listings by the shortest distance from the searched address or zip code.

How It Works

  • Nearby appears in the Sort By dropdown only when:
    • the admin enables it in the relevant sort settings
    • the user searches with valid radius/location coordinates
  • It works with both:
    • address-based radius search
    • zip-based radius search
  • When selected, listings are ordered by nearest distance first.

Settings

  • All Listings page:
    Settings > General > All Listings > Sort Options

  • Search Result page:
    Settings > Search > Search Result > Sort Options

Nearby is controlled separately in each area, so:

  • enabling it in All Listings affects all-listing sort options
  • enabling it in Search Result affects search-result sort options

Behavior Notes

  • Radius search filters which listings are eligible.
  • Nearby sorts those eligible listings by distance ascending.
  • If no valid location reference exists, Nearby does not appear in the dropdown.

- add Nearby to all listing and search result sort settings\n- show Nearby only when enabled for the current page and valid radius coordinates exist\n- sort eligible results by nearest distance first using the existing geo query\n- refresh the sort dropdown during instant search so Nearby appears or disappears with geo context\n- keep instant-search sort refresh aligned with the sort-enabled setting\n\nTesting:\n- enable Nearby in All Listings sort settings and verify instant search shows Nearby for address and zip radius search\n- enable Nearby in Search Result sort settings and verify search results show Nearby for address and zip radius search\n- disable sorting and verify instant search does not re-add the sort dropdown
@Armanul46 Armanul46 added this to the v8.7.1 milestone Apr 27, 2026
@RabbiIslamRony
Copy link
Copy Markdown
Member

Looks good

@Armanul46 Armanul46 merged commit 54927c4 into sovware:development Apr 29, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants