This is an Android sample app written in Kotlin which shows how to implement a simple Restaurant search app using Google Places and Google Maps
- Configuring the Android emulator to provide a mock location.
- Setting up your project
- Requesting user permissions to access device's geo location
- Move the map to the current device location
- Using the Google Places API to search for restaurants
- Implement a Search bar with autocomplete results
- Displaying the selected restaurant in a Map view.
For a step-by-step tutorial, please see my blog post on developing a Restaurant Search app in Android with Kotlin.
- Cone the project from GitHub
https://github.com/justmobiledev/android-kotlin-restaurant-search-1.git
- Build the project in Android Studio
- Deploy on simulator or device.
- Android Studio 4.1.1
- Android API 29
- Grant location permission
- Click inside the search bar and type a restaurant search keyword
- Select a restaurant suggestion from the autocomplete dropdown
- The map pans to the location of the selected restaurant.