Hello developers, and welcome back.
In this course, we'll build a powerful and intuitive Android application from scratch.
Using Google Maps SDK as a foundation.
The app will display location markers stored in Firebase Firestore and offer smart navigation features.
By integrating the Google Directions API, you'll learn how to use MVVM architecture for clean and maintainable
code, so everything is organized in a way that maintain the separation of code and the MVVM architecture.
Also, we're going to integrate our friend Hilde for dependency injection to manage your app's component
and efficiently, we're going to learn how to fetch and display markers from Firebase Firestore in real
time.
So for example we're going to add a new marker here Morocco for example the field the coordinates latitude
and longitude click save.
And in real time the marker will appear on our map.
also.
We're going to handle the click events on the mark on the map.
Displaying a marker with the coordinates so you can notice the latitude and longitude of the selected
marker.
Moreover, we're going to fetch the current position of the user.
So the main idea here is to fetch the current position of the user and display the directions to any
marker.
Even fetched from Firebase Firestore or from the selected marker.
So for example if I change the location of our emulator here I'm emulating the the the position.
Let me set it to Brazil set location.
And here we go.
The position is updated.
So here we are getting the current position the live location of the user.
Also we're going to create this expandable fab floating action button in order to do additional and
complex requests for directions.
For example, if I need to upload the A request arrived.
So if I am a user, I need a ride from here.
For example, request a ride.
You can notice that Firebase Firestore is updated.
And this marker is being stored in our Firebase Firestore.
Then the current location this is for the driver if I need to if I am the driver and I need the directions
to the requested ride.
Click draw route.
The route will be displayed from the current position to the requested ride.
Make sure you display and save markers on near to the roads and streets.
Okay, in order to fetch the current and the correct and the fastest route.
Also, we're going to add another feature.
So here if we plan to go from this point, add multi markers from this marker to this marker.
This Marker and go to here if I need to fetch the fastest route and the direction.
Place the markers in pink and selected row multi route and here we go.
The route will be displayed correctly.
Fetching the fastest route between the markers.
Those are the markers.
And they are fetched and displaying the fastest route between those markers.
Okay so this is our application based on Google Maps SDK.
Fetching and drawing directions between two points, the current position and any marker, or between
different markers and waypoints.
Also, we're going to handle live map interactions using Jetpack Compose and the maps SDK.
By the end of this course, you'll have built a feature rich, scalable maps app and gained a solid
understanding of modern Android development best practices.