B4A, B4i and B4J classes are attached.
PlacesAutocompleteView is based on SearchView. It calls Google's Places autocomplete API to let the user select a place.
Once selected it sends another request to get the exact location. You can get other information as well.
B4A project depends on: B4A v7+, IME, JSON and OkHttpUtils2
B4i project depends on: B4i v4+, iHttpUtils2, iJSON and iUI8.
- In order to use Google Places API you need to create a project in Google developer console: https://console.developers.google.com/
- Enable Google Places API Web Service api.
- Create an API key and set it in Main.Process_Globals.
Make sure to go over Google's policies: https://developers.google.com/places/web-service/policies#logo_requirements
The usage limits for a free unidentified account are quite low. Once identified the limits are much higher.
PlacesAutocompleteView is based on SearchView. It calls Google's Places autocomplete API to let the user select a place.
Once selected it sends another request to get the exact location. You can get other information as well.
B4A project depends on: B4A v7+, IME, JSON and OkHttpUtils2
B4i project depends on: B4i v4+, iHttpUtils2, iJSON and iUI8.
- In order to use Google Places API you need to create a project in Google developer console: https://console.developers.google.com/
- Enable Google Places API Web Service api.
- Create an API key and set it in Main.Process_Globals.
Make sure to go over Google's policies: https://developers.google.com/places/web-service/policies#logo_requirements
The usage limits for a free unidentified account are quite low. Once identified the limits are much higher.
Attachments
Last edited: