About GravityView Maps geocoding

Geocoding is the process of converting an address to geographic coordinates.

GravityView Maps does this automatically using different tools described below.

How it works

To geocode entries, GravityView Maps uses the Geocoder PHP library by William Durand.

The plugin uses multiple geocoding services in sequence, until one successfully returns a result. The services are processed in the following order:

  1. Google Maps for Work (if API key is configured)
  2. Google Maps API (limited rate without a key)
  3. Bing Maps API (if API key is configured)
  4. MapQuest API (if API key is configured)
  5. OpenStreetMap

Advanced Geocoding Configuration

Geocoding Filters

  • gravityview/maps/geocoding/providers/googlemaps Enable using Google Maps API. Default: true
  • gravityview/maps/geocoding/providers/openstreetmap Enable using OpenStreetMap. Default: true
  • gravityview/maps/geocoding/mapquest/licensed_data MapQuest offers two geocoding endpoints one commercial (true) and one open (false). If you have a commercial license, return true. Read more. Default: false
  • gravityview/maps/geocoding/providers/locale Return a locale for providers that support it. Default: null
  • gravityview/maps/geocoding/providers/region Return a region for providers that support it. Default: null

Constants

You can hard-code API keys into a site's wp-config.php file.

  • Google Maps API: GRAVITYVIEW_GOOGLEMAPS_KEY
  • Google Maps API for Work:
    • GRAVITYVIEW_GOOGLEBUSINESSMAPS_CLIENTID
    • GRAVITYVIEW_GOOGLEBUSINESSMAPS_KEY
  • Bing Maps: GRAVITYVIEW_BING_KEY
  • MapQuest: GRAVITYVIEW_MAPQUEST_KEY
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.