Topic: What API key is OnlineMapsGoogle using?

Hi

I have ran into the problem of always acheived daily quota limit. But i'm just trying normal queries.

I realised that when I use some of the OnlineMaps Google classes, i never put my API key anywhere....
How does this work?

Best regards.

Re: What API key is OnlineMapsGoogle using?

Hello.

Some Google APIs (Geocoding API and Directions API) can work without a key.
But of course it's better to use your own key.
To use the key, make a request using the parameters object and specify your Google API key:
http://infinity-code.com/doxygen/online … 69976cfc04
http://infinity-code.com/doxygen/online … 09ab8c822c

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: What API key is OnlineMapsGoogle using?

How can I put that in code?

Re: What API key is OnlineMapsGoogle using?

http://infinity-code.com/doxygen/online … ab940d6e5b
http://infinity-code.com/doxygen/online … 82b6d70a5e

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: What API key is OnlineMapsGoogle using?

Thanks the first worked, but using de Geocoding gives me code error. Is the code like this (i know it's not)?

OnlineMapsGoogleGeocoding query = OnlineMapsGoogleGeocoding.Find(Waypoints2GO[i]

new OnlineMapsGoogleGeocoding.RequestParams{

key = apikey

});

query.OnComplete += OnQueryGeocodingComplete;

Re: What API key is OnlineMapsGoogle using?

Google Geocoding API contains two options (Geocoding and Reverse Geocoding), which have different parameters.
https://developers.google.com/maps/docu … ding/intro
So you need to use OnlineMapsGoogleGeocoding.GeocodingParams or OnlineMapsGoogleGeocoding.ReverseGeocodingParams.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: What API key is OnlineMapsGoogle using?

Hello Alex, I, too, could not understand how to use methods with API keys.

OnlineMapsGoogleGeocoding.Find() Has 3 overloaded methods, and only 1 methods contain RequestParams with api key. But how use api key with other method?

For example    
OnlineMapsGoogleGeocoding.Find    (    Vector2     lnglat,    string     lang = null )   
vector and language, but not eny params with api key


Thank you

Re: What API key is OnlineMapsGoogle using?

Hello.

For Geocoding:

OnlineMapsGoogleGeocoding.Find(new OnlineMapsGoogleGeocoding.GeocodingParams(address)
{
    key = googleAPIKey
})

For Reverse Geocoding:

OnlineMapsGoogleGeocoding.Find(
    new OnlineMapsGoogleGeocoding.ReverseGeocodingParams(lng, lat){
        key = googleAPIKey
})
Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!