Add Cuisine models from here.
Remember to use the actual response ( the one you get when you use an apikey ) and not the sample response as they may differ.
On the Home fragment we can display the location_details of the user in the bottom fragment instead of performing a search query. We can also add the geocode response.
Restaurants can be filtered on the basis of categories. In HomeFragment, users should be able to filter and distinguish restaurants catergory wise. For this, map markers and chips (to filter restaurants) can be used.
While following MVVM architecture, it's recommended to have the Repository as a Singleton, which is not followed in this app yet (a new instance is created for every ViewModel instance, and in one of the ViewModels, even for every method in the ViewModel). Edit: Since ApiService is already a singleton, this is now only a code style issue. Only a global Repository instance should exist in every Viewmodel.
Currently in the repository we are returning only Single however we can also return a single with the subscriber and observer already added to it (subscribeOn and observeOn method already invoked) so as to reduce repetition of code.
Currently, we have the recyclerview to display restaurants but nothing happens when clicking on a restaurant item. The idea is to direct users to that specific restaurant's details when clicking on the item.
Add Category model from here.
Remember to use the actual response ( the one you get when you use an apikey ) and not the sample response as they may differ.