HOW TO add Google APY Key and use it on my Hotel Site?

Talk and help info about common issues

Moderators: ne_moj, zewa

administrator
Site Admin
Site Admin
Posts: 5922
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO add Google APY Key and use it on my Hotel Site?

Postby administrator » Aug 4th, '16, 14:23

Google now doesn't allow from 2016 to access maps without API key.

First of all read this article to understand to to get your API Key:
https://developers.google.com/maps/docu ... et-api-key

Second, find following code in your templates/{your template}/default.php

Code: Select all

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>


and replace it with

Code: Select all

<script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"  type="text/javascript"></script>

Return to “ApPHP Hotel Site {HOW TO}”