php-google-map-api icon indicating copy to clipboard operation
php-google-map-api copied to clipboard

The geoGetCoors method does not use the Google API-key in requests

Open fl0pp opened this issue 7 years ago • 0 comments

It seems like this project is dead, but I use it in an old project that is still running. I found a bug in the API-call to Google in the geoGetCoords method. It does not use the API-key provided by Google in it's API-calls.

I edited line 2648 to the following:

$_url = sprintf('https://%s/maps/api/geocode/json?sensor=%s&address=%s&key=%s', $this->lookup_server['GOOGLE'], $this->mobile==true?"true":"false", rawurlencode($address), $this->api_key);

fl0pp avatar Mar 16 '18 14:03 fl0pp