Welcome back.
Now let's display the response on our map.
Scroll down as a review.
We have the user location displayed in blue.
We have markers from Firestore displayed on the map.
And here there is a very important thing we need to make.
We need to allow the user to add one of those Firestore markers to the multiple markers.
So here if we click on any of those markers we are allowing the user to add it to the multiple markers.
So let me check again if is adding markers enabled in the same way as we did before, add it to the
multiple markers list and the ViewModel add marker to multiple multi route points.
Okay, this is very simple.
Scroll down.
We have the marker position.
This is displayed when the user clicks on the map.
Scroll down.
We have the route points displaying the route polyline between the two points.
Under this we need to display the result and the response of multiple points route.
So here draw multi points.
Polyline route multi points dot.
Let points.
If points route points are not null, go and create a polyline with points and the color.
You can specify it as magenta.
With.
You can make it as ten for example.
This is good.
And here we can display multiple markers.
Start with multiple markers.
List dot for each marker.
Go and create a marker.
Set the title selected position snippet marker, latitude and longitude.
You can create also like a color, a specified color and icon for the multiple markers.
So scroll down to here.
Specify the icon.
Check what we can add.
You can add to a violet yellow rose.
Let me add rose.
So those icons refer to multiple markers and the route between them is displayed in magenta.
Let me run our application and see the logic that we created.
This is our application.
Let me move to here and you can notice this is the marker position.
We can click on this fab and multi markers.
Let me add in Uruguay.
You can notice that the rose color of the marker.
This is the third the second one the third one here and the fourth one here.
Then click draw root.
And here we go guys.
Congratulations.
It's very amazing I love it guys.
This is the most important.
And this is the most complex application I've ever built.
There are a lot of things.
There are a lot of concepts, a lot of Android complex things that we group together in this application.
You notice, guys, this is a lovely application.
And by the way I'm going to put it on Play Store.
Okay so congratulations guys.
Again and again this is a very important application we've ever built together.