This article applies as of PRTG 22
Acquiring an API key to use Google Maps in PRTG
Important notice:
- To use Google Maps in PRTG Network Monitor version 13 or later, you need to acquire a new API key for Google Maps API v3.
- You must Enable the Static Maps API in the Google API Console's settings.
- You must run your PRTG web server as secure HTTPS server to use Google Maps.
By default, PRTG version 18.3.42 and later uses the geocode of HERE Maps, because Google will not allow keyless access to the geocoding API in the future. Geocoding is used to convert the addresses that you enter in the Location (for Geo Maps) settings into geographic coordinates to show the position of your monitoring objects on the geographical map.
If you still want to use the geocoding API of Google, you must enable your Maps Static API access key for the Geocoding API as well.
We recommend that you do not use Google Maps Static API. If you use this option, geographical maps will be shown with limited functionality.
Step 1: Get a Google account
First you need a Google account. If you do not have one, you can create one here: https://accounts.google.com/signup
Step 2: Use the Google APIs console to create your key
Important notice: As of PRTG 13, use the Google Maps Static API service. See above. |
- Open the Google APIs console and log in: https://console.cloud.google.com
- Create a project or open an existing one.
- Open the API Library to show all Google APIs.
- In the section Maps, click Maps Static API (you might need to expand the list via View all to see the entry).
- Click Enable to use the Google Maps Static API.
- Open the Credentials tab and click Create credentials. Use the option API key.
- Do not restrict the key (None) or provide the domain of your PRTG installation. For example, get it from the URL of your PRTG installation:
https://<provide this part>/group.htm?id=0&tabid=1
- Copy your API key.
Note: To use the Google Geocoding API instead of the HERE Maps geocoding in PRTG 18.3.42 or later, also enable Geocoding API in the Google console and use the API key that you generated for the Maps Static API before.
Step 3: Enter API key in PRTG
- Copy your API key from the Google page.
- In the PRTG web interface, select Setup | System Administration |
User Interface (System & Website in previous versions) from the main menu.
- In the Geo Maps section, select a Map Type and paste your API key into the Google Maps Static API Key field.
- Save your settings.
Step 4: Switch PRTG web server to SSL
Geographical maps can only be shown if the PRTG web server runs using HTTPS on port 443. To apply this setting, open Setup | System Administration | User Interface from the main menu bar in the PRTG web interface. In the section PRTG Web Server, switch the TCP Port for PRTG Web Server to Secure HTTPS server (port 443), click Save, and confirm the restart of the Windows services.
Done
PRTG now shows the location of groups and devices in maps if there is location information available in the object settings. No geographical maps are displayed if you do not provide location information in PRTG.
Optional: Delete browser cookies
If you still do not see Google Maps in the PRTG web interface, delete all cookies in the browser you use to access the PRTG web interface, or use a different browser.
More
- To learn more about the Maps API, see this FAQ.
Google maps do not work in deprecated versions PRTG 7 through 9.2.0.2175. Make sure to update PRTG to the latest version.
Add comment