• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
July 01, 2022 |5.1K Views
Draw the Routes between Two Locations on Google Map in Android
  Share   Like
Description
Discussion

In this video, we will be building an android app from scratch on How to draw routes on Google Maps Android application. 
Google Maps is used in most of the applications such as Ola, uber which provide taxi services and we can also get to see the same in many other applications.

In these applications, google maps are generally used to draw routes between two locations on google maps. There are 2 approaches which we can follow to draw routes on Google Maps.

In the first approach, we can integrate google maps within our application using google maps activity and API key. In this approach, we have to enable google directions API within our google developer console to add a direction feature within our application. So for using this approach we have to enable the payment method within our google developer console to use it.

Now, in the second approach, we will be simply using the intent to draw the route between 2 locations in the google maps application. We will be building an application in which we have to specify source and destination location and a button to draw the route between two locations.

After clicking on the button user will be redirected to the google maps application and the route will be drawn between two locations in the google maps application. We will be using Android studio as an IDE for building this project and we will be using java as a programming language. This project will surely help the beginner to intermediate-level android developers brush up and enhance their Android development skills.

Link: https://www.geeksforgeeks.org/how-to-generate-route-between-two-locations-in-google-map-in-android/

Read More