Skip to content
Chauffeur Plugin
WordPress plugin guide · Getting started

Google Maps API keys: step by step

Create the browser and server keys that give instant prices and address suggestions, restrict them, and keep the cost near zero.Updated

Instant prices need Google Maps. The plugin uses your own Google Cloud keys, so you control usage and cost and nobody marks it up. You need two keys:

KeyUsed forAPIs to enableRestrict it to
Browser keyAddress suggestions, the zone map, the car on the live tracking mapMaps JavaScript API, Places API (New)Your website (HTTP referrers)
Server keyDistances and prices, zones, the service-area checkRoutes API, Geocoding APIYour server's IP address

Without a server key the form still works, but every trip becomes a quote request.

1. Create a project and billing account

  1. Go to console.cloud.google.com and sign in with your business Google account.
  2. Create a project, for example *Big Black Limo booking*.
  3. Open Billing and link a billing account. Google requires one even though its monthly free usage covers most small and mid-sized operators.

2. Enable the four APIs

In APIs and Services → Library, search for and enable each of these: Maps JavaScript API, Places API (New), Routes API and Geocoding API.

3. Create the browser key

  1. APIs and Services → Credentials → Create credentials → API key.
  2. Rename it *Browser key*. Under Application restrictions choose Websites and add your domain twice: yourdomain.com/* and *.yourdomain.com/*.
  3. Under API restrictions choose Maps JavaScript API and Places API (New). Save.
  4. Paste it in Chauffeur Plugin → Settings → Integrations → Google Maps browser key.

4. Create the server key

  1. Create a second API key and rename it *Server key*.
  2. Under Application restrictions choose IP addresses and add your server's IP. Your host shows it in its control panel; on shared hosting ask support for the outgoing IP.
  3. Under API restrictions choose Routes API and Geocoding API. Save.
  4. Paste it in Settings → Integrations → Google Maps server key. It is stored encrypted.

5. Check it works

Open your booking page in a private window, type an address and get a price. Then open Settings → Booking rules → Check your service area: it confirms Google found your base address.

TipIn Google Cloud, set a budget alert under Billing → Budgets and alerts, and daily quotas per API. Then a mistake or a bot can never run up a bill.

Frequently asked questions

How much does Google Maps cost for a booking form?

Google gives a monthly free allowance for each API, which covers the address searches and route calculations of most small and mid-sized operators. Larger fleets pay Google directly per request. Set a budget alert in Google Cloud to stay in control.

Why two keys instead of one?

The browser key is visible in your page's code, so it is locked to your domain. The server key calculates prices and stays on your server, locked to its IP address. Splitting them means a copied browser key cannot be used to run up route calculations.

Address suggestions work but there are no prices. Why?

The browser key is fine but the server key is missing, restricted to the wrong IP, or the Routes API is not enabled on it. Without a working server key, trips become quote requests.

Do popular locations need a Google key?

No. Popular locations appear in the address fields even without a browser key. Prices still need the server key.