I am currently trying to use Google Places API to add Autocomplete functionality into a Form.
I could use a Ruby Wrapper like this one:
https://github.com/qpowell/google_places
But Autocomplete functionality seems more like a client side action closer to that one:
https://github.com/kristianmandrup/gmaps-autocomplete-rails
Problem with client side code is when trying to use a Google Places API KEY to increase the rate limit:
<script src="//maps.google.com/maps/api/js?key=XXXX&v=3.13&sensor=false&libraries=geometry" type="text/javascript"></script>
- Isn't that risky to embed an API key inside client side code, making it accessible to anybody?
- Is there a way to use that client side code while protecting the API key?