--- title: Set up Google Maps API description: You enable the geolocation feature using the appropriate entries from a Google Maps API for Business license, or a Google Maps JavaScript API Key. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-user-interface/set-up-google-maps-api.html release: australia topic_type: task last_updated: "2026-03-12" reading_time_minutes: 6 breadcrumb: [Map pages, User interface configuration, Working in Core UI, Configure UIs and portals, Configure user experiences] --- # Set up Google Maps API You enable the geolocation feature using the appropriate entries from a Google Maps API for Business license, or a Google Maps JavaScript API Key. ## Before you begin Role required: admin ## About this task You can generate maps using basic JavaScript, and they are flexible enough to display even the most complicated of queries. These maps use standard Google Maps API for Business or Google Maps JavaScript API Key mapping features, including various link types to records in your instance. Use of this feature requires installation of the Google Maps plugin. **Important:** Starting May 2026, Google is deprecating the use of Client ID for authenticating requests to Google Maps. From this date onward, API keys will be the only supported authentication method. If your application continues to use client-id \(for example, via the **google.maps.method property**\), Google Maps requests will fail. For more information, see [Client ID Migration Guide](https://developers.google.com/maps/premium/migrate-client-id). Update your configuration to authenticate using an API key only \(that is, set **google.maps.method** to `key`\). Refer to the descriptions of **google.maps.key** and **google.maps.key.geocoding** properties for more information on API key–based authentication. ## Procedure 1. Google Maps APIs for Business licenses are no longer available from Google, so, depending on whether have an existing license, use one of the following procedures. **Note:** You are required to use your own Google Maps JavaScript API Key from Google and not use any ServiceNow AI Platform® generated key.
| Existing Google Maps API for Business license available? | Tasks |
|---|---|
| **Existing license available** | 1. In the **System Properties** > **Google Maps** property form: - In the **google.maps.client** field,enter the Client ID for your organization. This ID is from Google and starts with `gme-`, such as `gme-mycompanyname`. - In the **google.maps.client.key** field, enter the private key for Google Maps API for Business. An example of an encoded key is `vNIXE0xscrmjlyV-12Nj_BvUPaw=`. The ServiceNow AI Platform® requires this key to retrieve accurate driving time estimates from Google for some Geolocation features. - Fill out the remaining values on the form. 2. Configure your maps using the property definitions from the table. **Important:** The Google Maps Client ID–based configuration is being deprecated. Client ID authentication will not be supported starting May 2026, and configurations relying on it will no longer work. |
| **No license available** | 1. Obtain a Google Maps JavaScript API Key from Google. 2. In the **System Properties** > **Google Maps** property form, enter the API key into the **google.maps.key** field. Geolocation in the ServiceNow AI Platform® uses the API Key, which Google Maps also uses for Geolocation and map view billings. 3. Fill out the remaining values on the form. 4. Configure your maps using the property definitions from the table. |
| Property | Description |
|---|---|
| google.maps.method | Defines which method of authentication should be used for Google Maps.- Type: string - Default value: key - Location: **System Properties** > **Google Maps** |
| google.maps.auto\_close | If true, automatically closes a map information window before opening a new one.- Type: true/false - Default value: true - Location: **System Properties** > **Google Maps** |
| google.maps.client | Client ID for Google Maps API for Business.- Type: string - Default value: gme-servicenow - Location: **System Properties** > **Google Maps** |
| google.maps.map\_id | Map ID for Google Maps used for the cloud-based maps styling, vector maps, and advanced markers. To obtain your Map ID, see [How to create map IDs](http://developers.google.com/maps/documentation/javascript/map-ids/get-map-id).- Type: string - Default value: empty - Location: **System Properties** > **Google Maps** |
| google.maps.client.key | Private key for Google Maps API for Business. This key activates the geolocation feature, which locates users in the system precisely, using data from their mobile devices.- Type: string - Default value: empty - Location: **System Properties** > **Google Maps** |
| google.maps.version | Version number of the current installation of Google Maps API for Business.- Type: string - Default value: current version number - Location: **System Properties** > **Google Maps** |
| google.maps.key | Google Maps API for Business or Google Maps JavaScript API Key that ties to the URL of the server. This key authorizes development use of Google Maps API.- Type: string - Default value: empty - Location: **System Properties** > **Google Maps** |
| google.maps.key.geocoding | Google Maps API for business or Google Maps JavaScript API key that ties to the URL of the server. This key is used for making geocoding requests.- Type: string - Default value: empty - Location: **System Properties** > **Google Maps** |
| google.maps.latitude | Starting latitude of the map. This value determines the starting position displayed in Google Maps.- Type: string - Default value: 36.008522 - Location: **System Properties** > **Google Maps** |
| google.maps.longitude | Starting longitude of the map. This value determines the starting position displayed in Google Maps pages.- Type: string - Default value: -95.221764 - Location: **System Properties** > **Google Maps** |
| google.maps.max\_items | Maximum number of items to display on the map.- Type: integer - Default value: 500 - Location: **System Properties** > **Google Maps** |
| google.maps.table | Table used by the map. The table needs the following fields: name, longitude, latitude.- Type: string - Default value: cmn\_location - Location: **System Properties** > **Google Maps** |
| google.maps.zoom | Starting zoom level of the map \(1 is the lowest\)- Type: string - Default value: 4 - Location: **System Properties** > **Google Maps** |
| System property | Description |
|---|---|
| google.maps.refresh.latlong.duration | Number of days after which the location details are updated.**Note:** The maximum value is 30. |
| google.maps.refresh.latlong.record\_count\_per\_table | Maximum number of records in a table that can be processed using the scheduled job in one refresh. |