Topic: Google API Keys

Hey,

We have to integrate some API keys for the Google Maps API (specifically the location lookup service). Whereabouts do we add this information in Online Maps?

Re: Google API Keys

Hello.

Google Maps API is only required for some services, access to which you can get by using Online Maps API.
Make some global variable or constant with your Google API Key, and use it in methods that require this key.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Google API Keys

Hi!

Just a follow up question - will we need to dig into the OnlineMaps code and insert the Google API key wherever we're making a request to Google services?

We plan to integrate this awesome plugin of yours in our other projects, would you consider adding this functionality in a future release?

Re: Google API Keys

Hello.

No. Google API Key is used only in Online Maps API, and you need to specify the key as a parameter to the method.
For example, OnlineMapsFindPlaces.FindNearby has required parameter "key".
http://infinity-code.com/doxygen/online … 7506e94d41

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Google API Keys

What sort of API key do we need? I created a Browser Key and a Server Key but both of them yield the following error message when I plug it into the example code you have posted here: http://infinity-code.com/doxygen/online … laces.html

"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<PlaceSearchResponse>\n <status>REQUEST_DENIED</status>\n <error_message>This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console</error_message>n</PlaceSearchResponse>n"

Thanks!

Re: Google API Keys

Hello.

You need to enable «Google Places API Web Service», and use your browser key.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Google API Keys

Perfect, thanks!

In case someone else had the same issue, I found that setting in Google's Developer Console, under the API Manager's Overview section under Google Maps APIs.

https://console.developers.google.com/apis

Re: Google API Keys

It appears that «Google Places API Web Service» has been deprecated. Could you please refer me to the current API to obtain the key from?

Re: Google API Keys

Hello.

Why do you think that "Google Places Web Service API has been deprecated"?
I just checked the documentation and google console.
There's no any information about this.
https://developers.google.com/places/we … arch?hl=en
https://console.developers.google.com/a … d/overview

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.