I've been looking into the Google Autocomplete Address Form and they have some very nice examples that work well and I don't really have a problem implementing them, except that the api key is exposed in the html of the document which for me means that anyone can copy that key, use it and I get billed for it. Or maybe I'm overlooking something here? So for this reason I find that it is not very secure to use autocomplete in such way.
Examples here: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
The only way around it that I can think of is to move calls to my own server where the api key would not get exposed, however I will then lose all of the javascript library functions that I can take advantages of as shown in the example above. I'm trying to figure out if there is a way to use their libraries to call autocomplete without exposing the api key to the browser or if there is not, where can I find the list of server calls I could make and have the front end call my server which then returns results from google via a server to server call?