menu

Apply Google API keys

As described in our Geocoding requirements page, we recommend creating two Google API keys, and assign them to the following Google API services:

First Google API key (should be restricted by HTTP referrer, which is your user interface URL):

  • Google Maps JavaScript API
  • Google Street View Image API

Second Google API key (Should be restricted by server IP):

  • Google Maps Geocoding API
  • Google Maps Geolocation API
  • Google Maps Directions API

Third Google API key (should be restricted by HTTP referrer, which is your user interface URL):

  • Google Static Maps API ( you also need URL signing secret for this key)

All keys are set up in the database.

The first key should be inserted into table paas_settings using the following query:
UPDATE google.paas_settings SET google_client_id = 'YOUR_KEY_HERE' WHERE id = 1;
The second key and third key are should be inserted into table dealer_service_credentials with the following query:
INSERT INTO google.dealer_service_credentials (dealer_id, service_type, credentials) VALUES (1, "google", '{"server_api_key":"SECOND_KEY_HERE","static_map_api_key":"THIRD_KEY_HERE", "static_map_crypto_key":"URL_SIGNING_SECRET_HERE"}');
If you only need to apply one of the keys - you can omit the rest from the query. Example for using the third key only:
INSERT INTO google.dealer_service_credentials (dealer_id, service_type, credentials) VALUES (1, "google", '{"static_map_api_key":"THIRD_KEY_HERE", "static_map_crypto_key":"URL_SIGNING_SECRET_HERE"}');
And then restart the services
sv restart {api-server,sms-server,navixyserver}

Tracking 3.0 NEW
Open
Tracking 3.0 NEW
Thousands of objects.
Intuitive UX.
Powerful design.
Learn more >
Open

This website uses cookies.
See our Privacy Policy to learn more.