How To Use Google Places Api For Web Service In Android?
Solution 1:
The official way to integrate Google Places API is through the Android implementation. You could use the PlacePicker which takes care the most but if you have a need that it doesn't fill, then you could integrate just the Place Autocomplete to your own UI.
Having said this if you would insist using the service url directly in an Android app, then you would need to configure a Browser Key in the Google Developer Console.
Solution 2:
You shouldn't. Android has its own way to query places through the GooglePlayApiClient (read more here). You still want to use the web service you need a server key. From the documenation
Note: The Google Places API Web Service does not work with an Android or iOS API key.
you can get the key here. Please, note that key has a limitation of 15k text searches per day. If you need more you will have to apply for a premium plane
Solution 3:
- I want you to delete the current server_key.
- Create a new Server_Key.
- It takes 10 mintues to activate the server_key, otherwise you will get error_message "The provided API key is expired".
Now hit the url voila it works!!!
Post a Comment for "How To Use Google Places Api For Web Service In Android?"