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:
- Google Maps for Work (if API key is configured)
- Google Maps API (limited rate without a key)
- Bing Maps API (if API key is configured)
- MapQuest API (if API key is configured)
- 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, returntrue
. 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