apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.27k stars 382 forks source link

1.5.8 removed ability to auth as client #561

Open mcauser opened 5 years ago

mcauser commented 5 years ago

For Google Maps APIs Premium users, the client parameter is still used. https://developers.google.com/maps/documentation/javascript/get-api-key#client-id

You can authenticate with either an api key or client id. https://developers.google.com/maps/documentation/javascript/get-api-key#clientID-features

client param removed in https://github.com/apneadiving/Google-Maps-for-Rails/pull/537

mcauser commented 5 years ago

For those authenticating as a client, the key param is not required.

When passing in both client id and a blank key, it throws an InvalidKey warning: &client=gme-xxx&key=&libraries=geometry...

It would be great if either the client= or key= params could be appended only when needed.