Skip to main content

Google Maps API Setup

Scrollengine uses Google Maps for route visualization, address geocoding, and driver navigation. To enable full map functionality, you need to add your Google Maps API key.

Why you need a Google Maps API key

  • Route mapping — Visualize routes on an interactive map
  • Address geocoding — Convert customer addresses to coordinates
  • Distance calculation — Calculate driving distances for delivery fees and route optimization
  • Driver navigation — Provide turn-by-turn directions in the mobile app

Getting a Google Maps API key

  1. Go to the Google Cloud Console
  2. Create a new project or select an existing one
  3. Navigate to APIs & Services > Library
  4. Enable the following APIs:
    • Maps JavaScript API
    • Geocoding API
    • Directions API
    • Distance Matrix API
  5. Go to APIs & Services > Credentials
  6. Click Create Credentials > API Key
  7. Copy the generated API key

Securing your API key

Restrict the key to prevent unauthorized use:

  • Application restrictions — Set HTTP referrer restrictions to your Shopify domain
  • API restrictions — Limit the key to only the four APIs listed above
  • Billing alerts — Set up billing alerts in Google Cloud to monitor usage

Adding the key to Scrollengine

  1. Go to Settings > Integrations in the Scrollengine dashboard
  2. Find the Google Maps API section
  3. Paste your API key
  4. Click Verify & Save

Scrollengine will test the key to ensure it's valid and has the required APIs enabled.

Costs

Google Maps APIs have a free tier (typically $200/month in credit). For most small-to-medium merchants, this covers normal usage. Monitor your Google Cloud billing dashboard if you process high volumes.

Troubleshooting

IssueCauseSolution
Map doesn't loadInvalid or expired API keyVerify the key in Google Cloud Console
"API not enabled" errorRequired API not activatedEnable all four APIs listed above
Geocoding failsGeocoding API not enabled or over quotaCheck API status and billing in Google Cloud
Routes show straight linesDirections API not enabledEnable the Directions API