To set shipping rates based on distance, you need to integrate Google Maps with the ShipX app using a Google Maps API Key.
This guide walks you through the steps to generate your API key and connect it to ShipX.
How to generate Google Maps API Key
1. Go to Google Console on your browser or click here.
2. Sign in with your Google account and accept to the terms and conditions
3. Navigate to “My Project” and click the “New Project” option.

4. Enter a name for your project and click the “Create” button.

5. Once you create your project, you have to link a billing account in the Billings page.

6. On the Billings page, click the “Link a billing account” option.

7. Click “Create Billing Account” and complete the payment process.
Note: New customers will get $300 free credits for the Google Cloud products once you link your billing account. Once you exhaust the free credits, you will be charged based on your usage.
8. Once you complete the payment process, go to “APIs & Services” and select the “Library” option.

9. Under Category, select the “Maps” option.

10. Now, enable the following APIs:
- Geocoding API
- Places API
- Directions API
- Distance Matrix API
- Maps JavaScript API
- Geolocation API
- Routes API
11. Once you have enabled the above APIs, go to “API & Services” and select the “Credentials” option.

12. Click “Create Credentials” and select “API key” to generate the API key.

13. Ensure that the generated API key is not restricted.
14. Copy the API key and head to the ShipX app.
How to integrate Google Maps with ShipX
1. On the ShipX app, go to Settings > Integrations.
2. Enable the Google Maps integration.

3. Paste the copied Google Maps API key.

4. Click Validate API key.

5. Once the key is validated, set the Distance-Travel mode.

6. Click Save.
Note: To change the distance metric (kilometre or miles), go to ShipX > Settings > Basic app setup > Change distance metric based on your preference.
Once you integrate Google Maps with ShipX, see how you can set shipping rates based on distance.
If you need further information or assistance, please contact our customer support.