Why isn’t my listing displayed on the map?

Cre­at­ing a new list­ing on your web­site is a pret­ty straight­for­ward process. You just fill a form with dif­fer­ent details and hit the Pub­lish but­ton.
The address is a spe­cial sec­tion because the WP Job Man­ag­er plu­g­in (the one which cre­ates and man­ages every­thing relat­ed to the list­ings) takes this val­ue and pass­es it to Google Maps API.
The lat­ter sends back dif­fer­ent ele­ments like address, coun­try, the city as well as geolo­ca­tion lat­i­tude and lon­gi­tude. Using these last two val­ues, the map (from the list­ings archive or from the right side of the page when you check the list­ing) is cre­at­ed.
In the sit­u­a­tion when this par­tic­u­lar map is not work­ing prop­er­ly on your web­site, you have to:
  • Edit the list­ing (in the Dash­board area) and make sure that you have the geolocation_lat and geolocation_long fields at the bot­tom of the page;
  • If these two fields are not avail­able, check if you added the Google Maps API key to the List­ings → Set­tings → Google Maps API key field. Even if this field is set up cor­rect­ly, you should go to this page, gen­er­ate a new key for your web­site and replace the old one.
Now all you have to do is go back to the list­ings that don’t dis­play the map, edit them and just hit the Update but­ton. This way, the two miss­ing fields will be gen­er­at­ed and get every­thing back to nor­mal.

How can I generate the API key the right way?

The whole process is pret­ty sim­ple:
  1. Go to this link;
  2. Press the GET A KEY but­ton;
  3. Click the Select or cre­ate project option;
  4. Select Cre­ate a new project;
  5. Add a name for your project;
  6. Click the Cre­ate and enable API but­ton;
  7. Copy the API key gen­er­at­ed for you;
  8. Paste the key in List­ings → Set­tings → Google Maps API key.

What should I do if I already added the API key but the map is still not working for some listings?

Adding an address to a list­ing is like using it direct­ly in Google Maps. If the address that you’re try­ing to use is not return­ing any result, it won’t gen­er­ate a map for the list­ing either. In this spe­cif­ic case, you should try to slight­ly change the struc­ture of the address (remove some spe­cif­ic details like dis­trict or num­ber, for exam­ple). If the address works in Google Maps it will work on your web­site too.

This article applies to Listable, as they share the same underlying structure.

Updated on December 12, 2017

Was this article helpful?