We rebuilt our website from scratch and are still updating some extensions and pages. Having a problem? Sign in and open a support ticket or contact us.
JoomBoost

Google Geocoding

Geocoding turns an address or a place name into a position on the map. JoomMap uses the geocoding service of the Google Maps JavaScript API, in the visitor's or editor's browser, with your Google Maps API key.

Where JoomMap uses it

  • The GeoCoder tool in the map, location and site submission forms: type an address, click GeoCode this!, and the marker moves there. See The GeoCoder tool.
  • The map search on map pages: the visitor's town or postcode becomes the centre of the search radius. See Map search.
  • Directions on location pages: the visitor's address becomes the start of the route. See Google Directions.

Set up

  1. In the Google Cloud Console, open the project of your Maps API key.
  2. Under APIs & Services > Library, enable the Geocoding API.
  3. If your key has API restrictions, add the Geocoding API to them.

There is nothing to set in JoomMap. The same key is used.

Better results

  • Search Region on the Map Search tab of the options adds a region to every search, for example UK or Morocco. Use it when your locations are all in one country, so a town name that exists in several countries finds yours.
  • Region on the Google API tab makes Google prefer results in that country.
  • In the GeoCoder tool, check the marker after geocoding and drag it to the exact spot if needed. Google sometimes places an address in the middle of a street or a town.

When geocoding fails

A message "Geocode was not successful for the following reason:" followed by a code means Google refused or found nothing:

Code What it means
ZERO_RESULTS Google found no place for this text. Try a fuller address
REQUEST_DENIED The Geocoding API is not enabled for the key, or the key restrictions block it
OVER_QUERY_LIMIT Too many requests in a short time, or a quota in your project is reached

Geocoding is billed by Google per request, separately from map loads.

All Extensions