Skip to main content
Location search

This articles explains how Location search works in Sharetribe.

Sharetribe avatar
Written by Sharetribe
Updated over a week ago

Location search allows users to find listings based their location. Users can search by specific address or areas such as a neighborhood, city, or state.

Location search is enabled at Console > Build > Listings > Listing search.

Location searches are powered by Google Maps or Mapbox. Your Test environment has a test Mapbox account configured. When you go Live, you need to connect Google Maps or Mapbox to power your location services in your Live environment. Learn more about connecting location services.

How are search results found and sorted

If you search a specific point or address, the listings will be sorted from the closest to the furthest from the given point that the user searched. This is called Location search by origin.

If you search an area, the search page, will only listings that are within the area searched for and sort the results in relation to the center of the area searched. This is called Location search by bounds

It is not possible to limit the distance from the searched-for point. All the listings will be displayed, ordered from nearest to further. It is not possible to remove listings that are farther than a certain distance.

Map view search page layout

"Map view" is one of the default search page layout options. When enabled, a map showing listing location features on the right hand on the search page.

Using the Map view layout with location search provides an intuitive location search experience. Users can search by location and see their results displayed on a map. Moving the map automatically refreshes the search to match the display area.

You do not need to have location search enabled to use the Map view.

Using current location for search

Users can type in the location they want to search or their current location. Search by current location started by clicking into the search bar. After clicking "Current location", users must give your website permission to access the browser's location. Giving permission automatically populates the search bar with their current location and initiates the search.

Enabling keyword search and location search

If your marketplace uses the location search, you can choose to display a "keyword" filter on your marketplace search page.

Did this answer your question?