Documentation

Setting Up Gravity Geolocation

Last modified: September 11, 2026

Introduction

The Gravity Geolocation settings page contains the site-wide options used by the plugin. This is where you activate your license, add the Google Maps API keys, choose localization and IP-location options, and control how Google Maps and map markers load.

Complete these settings before building location-enabled Gravity Forms. Individual forms and fields have their own settings, but they rely on this global configuration.

Open the Settings Page

  1. Sign in to the WordPress dashboard.
  2. Go to Forms > Settings.
  3. Select Gravity Geolocation.

Gravity Forms geolocation Settings page
Gravity Geolocation Settings page for Gravity Forms.

Gravity Geolocation Settings

1. Gravity Geolocation License Status

Use this panel to enter and activate your Gravity Geolocation license key and review its current status. An active license provides plugin updates and support. You can retrieve or manage your license from your account page.


2. Google Maps Browser API Key

Enter the Browser API Key (Required). Gravity Geolocation uses this key for client-side features such as Google Maps rendering, address autocomplete, map interactions, and markers. Restrict this key to your website domains and the browser-facing APIs used by the plugin.

Follow the Google Maps API key guide for the current API and restriction requirements.


3. Google Maps Server API Key

Enter the Server API Key (Required). The plugin uses it for secure server-side requests, including geocoding, reverse geocoding, directions, and route-distance calculations. Keep this key private and restrict it to the public IP address or addresses used for outbound requests by your web server.

If your host uses changing outbound IP addresses, ask the host which restriction method is supported before applying an IP restriction.


4. Google Maps Country Code

Enter the default country or region code used by Google Maps geocoding services. This can improve regional results and address suggestions. The default value is US. See Google’s Maps Platform coverage details for supported regions.


5. Google Maps Language

Enter the language code used for Google Maps controls, labels, and address autocomplete suggestions. The default value is en. See Google’s supported languages.


6. IP Address Locator

Select an IP address provider if you want the Locator Button or a form’s auto-locator to use IP-based location detection. IP location can be used instead of browser geolocation or as a fallback when browser geolocation fails.

The available choices are Disable, Ipapi.co, ipinfo.io, Ipregistry, and MaxMind. Accuracy and account requirements are controlled by the selected provider:

  1. Ipapi.co: Its free plan does not require a plugin token; other plans and usage limits are set by the provider.
  2. ipinfo.io: Requires an account and token.
  3. Ipregistry: Requires an account and API key.
  4. MaxMind: Uses MaxMind’s client-side GeoIP service when selected.

Note: IP geolocation is generally less precise than browser-based geolocation and depends on the provider’s data.


7. High Accuracy Location Mode

Enable this option to let browser-based auto-location request a potentially more accurate current position. This may take longer or use more device resources. It affects only the browser’s HTML5 geolocation feature, not IP-based location detection.


8. Disable Google Maps API

Enable this option only when another plugin or your theme already loads the Google Maps JavaScript API on every page where a Gravity Geolocation form appears. This can prevent conflicts caused by loading the API more than once.

Important: The other plugin or theme must load the correct Google Maps libraries and your Browser API key. Otherwise, map and address features may not work.


9. Disable Advanced Markers

Google Maps Advanced Markers are enabled by default and provide the plugin’s current marker rendering. Enable this setting to fall back to standard Google Maps markers when troubleshooting compatibility or when your configuration requires the older marker type.

Note: Custom JSON map styles are not applied while Advanced Markers are active. If your map depends on JSON styling, disable Advanced Markers or use a Google Cloud Map ID and cloud-based map styling.

Save and Test the Settings

  1. Complete the required license and API key fields.
  2. Choose the localization, IP-location, and advanced options your site needs.
  3. Click Save Settings.
  4. Open a form that contains a Geocoder field and test its map, autocomplete, and location features on the front end.

If an API feature does not work, confirm that billing is enabled in Google Cloud, the required API is enabled, and the correct restriction is applied to each key.

menu-circle