Breadcrumbs

Home / Help / FAQ / Tutorials / DJ-Classifieds FAQ / How to use Google Maps API Keys

Top Menu

Content

How to use Google Maps API Keys
How to use Google Maps API Keys 4.3 out of 5 based on 6 votes.


IMPORTANT:
As of June 22, 2016 Google made the following changes to the Google Maps APIs Standard Plan: No longer support keyless access (any request that doesn't include an API key) so you need to put the API keys to make the Google Maps work!

Google Maps has query limits per IP:

  • 2,500 free requests per day
  • 10 requests per second

Normally its enough for sites but if you have website on some shared hosting this limit is splited to all websites which use Google gocoding on the same IP.

In this situation Google Maps returns error OVER_QUERY_LIMIT and geocoding in search or generating Latitude and Longitude after posting new advert can't be done. Solution for this is to set Google Maps API Key in DJ-Classifieds options individual for your website.

What are and how to get the Server and Browser keys

Server key 

What Google says about Server key:

Create and use a server key if your application runs on a server. Do not use this key outside of your server code. For example, do not embed it in a web page. To prevent quota theft, restrict your key so that requests are only allowed from your servers' source IP addresses.

Follow this steps to get Server Key

Browser key

What Google says about Browser key:

Create and use a browser key if your application runs on a client, such as a web browser. To prevent your key from being used on unauthorized sites, only allow referrals from domains you administer.

Follow this steps to get Browser key

Once you have the keys generated you should enter them in Components -> DJ-Classifieds -> Options -> Global tab in Map & Locations Settings section

Note: Two API keys (Browser & Server) can be added starting from version 3.4.6 of DJ-Classifieds. If you see only one field to update API key - update to most recent version of DJ-Classifieds!

google-api-keys-maps-dj-classifieds

Note: If you're sure you have put the API keys correctly and something still does not work (you see errors in the console), make sure that you have not overrode those files:

  • components/com_djclassifieds/views/item/default_localization.php

and modules:

  • modules/mod_djclassifieds_maps/tmpl/cluster.php
  • modules/mod_djclassifieds_maps/tmpl/default.php
  • modules/mod_djclassifieds_search/tmpl/default.php

Questions? Let us know!


Found this article interesting? Subscribe for more.
Or share this article with your friends.
Wednesday, 16 March 2016 10:47
 
User Rating:  (6)
PoorBest
 

Footer Menu