Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Error of GeocodingClient on production server #125

Open
icekem opened this issue Dec 15, 2018 · 1 comment
Open

Error of GeocodingClient on production server #125

icekem opened this issue Dec 15, 2018 · 1 comment
Labels

Comments

@icekem
Copy link

icekem commented Dec 15, 2018

Trying to get coordinates (lat, lon) by GeocodingClient.

It works on local host, but on production i have error response

stdClass Object ( [error_message] => Keyless access to Google Maps Platform is deprecated. Please use an API key with all your API calls to avoid service interruption. For further details please refer to http://g.co/dev/maps-no-account [results] => Array ( ) [status] => OVER_QUERY_LIMIT )

My controller code

            $geocliente = new GeocodingClient();
            $aGeoCodeRes = $geocliente->lookup(
                [
                    'address' => $aQuery['q'],
                ]
            );

I have keys on config files
Also a have Google Cloud Platform keys for Geocoding API and Maps JavaScript API.
Tried to make restrictions by domain (host)

So works on local host, doesn't work on production.

Any ideas?

@tonydspaniard
Copy link
Member

@icekem it could be an issue with the keys and domains. Careful now as it will not longer return a stdObject but an array

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants