This repository showcases a demo Android application built using Kotlin and the Google Maps API. The app demonstrates various features and functionalities available in Google Maps, providing an excellent guide to developers looking to integrate maps into their Android applications.
- Markers: Add markers to specific locations on the map.
- Marker Windows: Display additional information when a marker is clicked.
- Custom Markers: Use custom icons or images as markers.
- Polylines: Draw lines connecting multiple points on the map.
- Polygons: Highlight areas by drawing shapes with multiple points.
- Get directions between two or more points.
- Calculate the distance between points.
- Support for different travel modes:
- Driving
- Walking
- Bicycling
- Transit
- Customize the appearance of the map to match your app's theme using JSON styling.
- Places: Search and display places of interest.
- GeoCoding: Convert addresses into geographic coordinates and vice versa.
- Clustering: Handle large datasets by combining nearby markers into clusters.
- Enable offline maps to provide a seamless experience in areas with limited or no internet connectivity.
- A Google Cloud Platform (GCP) account.
- Google Maps API key. Enable the following APIs:
- Maps SDK for Android
- Directions API
- Places API
-
Clone the repository:
git clone https://github.com/hpcreator/MapComposeDemo.git
-
Open the project in Android Studio.
-
Add your Google Maps API Key:
- Navigate to
res/values/strings.xml. - Replace
mapKeywith your actual API key.
- Navigate to
-
Sync the project with Gradle files.
- Connect your Android device or start an emulator.
- Run the app using Android Studio.
- Yet to be added...
- Language: Kotlin
- Framework: Android SDK
- APIs: Google Maps API, Directions API, Places API
Contributions are welcome! Please follow the steps below to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-name. - Commit your changes:
git commit -m 'Add some feature'. - Push to the branch:
git push origin feature-name. - Open a pull request.
- Google Maps API
- Open-source libraries and tools used in this project
Feel free to explore, fork, and contribute to this project. Together, let's make map integration simpler and more powerful!