most of the example above is calling http on a google server to get places in the iphone application, but it has a potential risk, since the google server key is easy to see by others.
In addition, the ip restriction does not help in this example.
so the correct way is to pass the parameter to your own server and then call the google server on your own server.
source share