0

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&amp;v=3.13&amp;sensor=false&amp;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?
prusswan
  • 6,853
  • 4
  • 40
  • 61
stefano_cdn
  • 1,362
  • 2
  • 15
  • 29

0 Answers0