Nearby Places is a demo app which demonstrates modern Android development. It is built using Kotlin, Hilt, Coroutines, Flow, Compose UI, ViewModel and Retrofit. In terms of architecture, this is a single activity application using the MVVM design pattern with a unidirectional data flow (UDF) to manage state and events. The packages are structured in a way that would make it easy to extract their contents into modules if the app had to be more complicated.
Functionality includes showing nearby venues from Foursquare Places API and showing them on a Google Map. Clicking pins loads additional information about the location. The current location can be refreshed by clicking the My Location button in the top right.
- Add your Foursquare Places API Key to
secrets.properties
- Add your Google Maps API Key to
maps-secrets.properties
- Compile!