Google Maps API key?

mcconnellsj
Kilo Sage

Has anyone recently had success in populating these fields in System Properties -> Google Maps?

find_real_file.png

The helpful text advises to get a key for "Google Maps API for Business" - but there is no such service available anymore.  ServiceNow docs also references this non-existent service.

Browsing through Google's cloud offerings gives a bewildering array of services, I don't know which one to choose in order to get the private key, maps key and client ID required for the System Properties above.

Does anyone know what I need to do as non-developer (in terms of Google APIs that is).

Thanks!

find_real_file.png

1 ACCEPTED SOLUTION

Hi,

Try the instructions here: https://developers.google.com/maps/documentation/distance-matrix/get-api-key

Once you have the API key, you can add the Google Maps function you want this API key to support (i.e. geocoding, static maps, directions, distance matrix, etc). This is the API key you can paste into the Google Maps properties within ServiceNow.

If I remember correctly, you might have to create a GCP project at some point before you can generate the API key.

View solution in original post

12 REPLIES 12

Hi,

Try the instructions here: https://developers.google.com/maps/documentation/distance-matrix/get-api-key

Once you have the API key, you can add the Google Maps function you want this API key to support (i.e. geocoding, static maps, directions, distance matrix, etc). This is the API key you can paste into the Google Maps properties within ServiceNow.

If I remember correctly, you might have to create a GCP project at some point before you can generate the API key.

Nikki thanks so much.

I created the account and generated an API key.

I don't know which API to enable and which Google Maps property to populate with the key.

As the property descriptions still reference "Google Maps API for Business", the terms no longer tie up.

For example I don't know the difference between these two and how they relate to the API services in GCP.

Sorry.

find_real_file.png

Hi,

I've used my Google Maps provided API key in the "Private key" property. In my New York instance, there is a toggle to use client id or key, located above the Private key property. Do you see the same?

Hi - yes I have the same toggle value in Madrid.

Some interesting things happen if I set to "client ID" - which I assume uses the default servicenow ID "gme-servicenow".

This has no obvious impact, except that if I enable "Use Google Maps API for travel time estimates" in field service properties, then run Central Dispatch, the list of agents disappears with the message shown below.

I don't see the connection ... I imagine I have to wade through spaghetti of dependencies to the find the answer.

For now I will mark as solved, and will persevere in the meantime - thanks for your help.

find_real_file.png

HI @mcconnellsj 

this occur when none of your agents match the skills, Parts required or distance to the wot location.

For resolving that issue you have to disable the agent recommendation.

For doing it, go to teams under the configuration and settings menu on the top right of the central dispatch and disable the agent recommendation option.

Are you still having problems with the google key configuration?