Skip to main content
All CollectionsIntegrationsSet up location services
How to set up Mapbox or Google Maps for location services
How to set up Mapbox or Google Maps for location services

This article describes how to enable location services in your marketplace.

Juho Makkonen avatar
Written by Juho Makkonen
Updated over a week ago

Your marketplace may use geolocation services to help providers and customers connect. The most common use of geolocation services is to power search by location, where customers search by location to discover listings nearby. If you plan to use locations in your marketplace, you must integrate a geolocation service.

You don't need to configure a map provider to try out location services in your Test marketplace. Your Test environment already has Mapbox configured.

You can use Mapbox or Google Maps as your geolocation service provider. These must be configured when you are setting up your Live environment if you want to use location search.
โ€‹
If you are not sure which one to choose, we recommend Mapbox due to its generous free tier. It also doesn't use cookies, which means it is more compatible with EU's GDPR regulation.

How to use Mapbox as your location provider

  1. Locate the Default public token or, if you wish to create a new one, click + Create a token, give it a name, and make sure all Public scopes are selected. Create the token.

  2. Copy the token value

    1. It should look something like pk.aRanDoMStringofLetterSaNDNumbERs

  3. In your Sharetribe Console Live environment, navigate to Integrations>Map

  4. Select "Mapbox"

  5. Paste the token into the field

  6. Press "Save changes"

You're done! Mapbox is now powering your location services.

How to use Google Maps as your location provider

  1. Click on the "Get started" button in the top bar, and follow the instructions to generate your key.

  2. After generating your key, you need to enable certain capabilities

    1. To navigate to the correct setting screen, follow instructions the the Getting Started section of the Places library documentation from Google

  3. Make sure the following capabilities are enabled:

    1. Google Places API Web Service ("Places API")

    2. Maps Static API

    3. Maps JavaScript API

  4. Navigate to "Credentials" in the left-side menu

  5. Press "Show key" and copy the key

    1. It should look something like aRanDoMStringofLetterSaNDNumbERs

  6. In your Sharetribe Console Live environment, navigate to Integrations>Map

  7. Select "Google Maps"

  8. Paste the key into the field

  9. Press "Save changes"

You're done! Google Maps is now powering your location services.

Did this answer your question?