It doesn't matter what you're looking for a restaurant, an ATM, or anything else as long as it's listed online, Nearby can help you locate it. Nearby is an Android app. Anyone looking to quickly and conveniently discover local establishments, such as eateries, ATMs, or other areas of interest, should use the Nearby application.
While studying Android development, I wanted to check out the Google Cloud Place API, so I created this application as part of my "experiments with Android". To understand how to deal with APIs and link Google Cloud services with Android, I constructed a simple application.
The Nearby Places application is developed using
* Kotlin
* XML
* Google Cloud Place API.
* Fused Location Provider API.
The Nearby Places application follows a standard Android app architecture, with a single main activity and map fragments for displaying search results on the map.
Some of the key design decisions made during the development of the Nearby Places application include using the Google Cloud Place API for location search and implementing a map view to display search results. Even it sends notifications to all users within 3km proximity when a user presses a button on their phone.
The Nearby Places application allows users to search for nearby locations by entering a keyword, such as "Restaurants", "ATMs"...
The Nearby Places application displays search results on a map, with markers for each location.
Users can view details about a specific location, including its name, and make directions.
Sends notifications to all users within 3km proximity when a user presses a button
Technically, the application will acquire GPS Location, through Fused Location Provider API and show the location on the map view. when the user types a keyword and clicks on the button this process will be executed -- Current Location along with the searched Keyword is sent to the Google Place API
- The Place API will analyse the input parameters and will generate an appropriate result
- Place API will return JSON data containing locations near the user
- Map will be updated with the Markers on the result locations
If you want to play around with what I've done, you may download and run it on your Android device. Please feel free to use the code as well. You only need a basic understanding of how to interact with APIs to begin working on something similar or to advance my program check out Contribute for more details
-
Open the Application
- A default Map will be shown
- You can Wait or Turn On the GPS by yourself
-
Wait for Acquiring your Location
- FusedLocationProvider API will access the Location
-
Search for any keyword like atm, restaurants, hotels...
- UserLocation along with the search Keyword is sent to Google Place API
- API processes the data and returns a JSON File
-
Access Your Near By Locations
- The locations returned by Place API are Marked on the map
- and the Map is updated
-
Press the button in the app to send a notification to all users within 3km proximity. Click on the notification to view the broadcast message.
- Users located Near the current user are mapped.
- Notification is sent to those users by Firebase Cloud Messaging.
There are the Prerequisite you required to contribute to this project
- Kotlin
- Working with JSON Data
- Knowledge of using API's