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 on their location. Users can search by specific addresses or areas, such as a neighborhood, city, or region.

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

When you search for a location, such as a specific address or broad region, only listings within the searched area are displayed. This type of search is called "search by bounds."

With code customization, you can change the location search in different ways. For example, you could implement a "point of origin search," which looks for results based on the starting point location and filters them based on their proximity to the starting location.

Map view search page layout

"Map view" is one of the default search page layout options. When enabled, a map showing listing locations appears on the right side of 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. Searching by current location starts by clicking in 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 location search, you can choose to display a "keyword" filter on its search page. Learn more about configuring your search settings.

Did this answer your question?