Skip to main content

Google Maps

Google Maps is a web-based map service developed by Google.

Authentication Types

Google Maps supports 1 authentication method:

  • API Key - Use a Google Maps API key for authentication.
    • Pros: Simple setup, no OAuth flow needed
    • Cons: Single credential for all users, usage is billed to your account

Generating an API Key

  1. Go to https://console.cloud.google.com/
  1. Create a new project or select an existing one

  2. In the left sidebar, go to APIs & ServicesLibrary

  1. Search for and enable the Maps APIs you need:
    • Maps JavaScript API
    • Geocoding API
    • Places API
    • Directions API
    • etc.
  1. Go to APIs & ServicesCredentials
  1. Click Create CredentialsAPI key
  1. Copy the generated API key
  1. (Recommended) Click Edit API key to restrict it:
    • Add Application restrictions (HTTP referrers, IP addresses, etc.)
    • Add API restrictions (limit to specific APIs)
  1. Click Save

  2. Paste the API key into Webrix

Note: Google Maps APIs are billed based on usage. Make sure to set up billing alerts and API restrictions to control costs.