Learn Pain Less

HomeOur TeamContact
Android
How to draw route directions google maps API V2 from current location to destination Android
Pawneshwer Gupta
Pawneshwer Gupta
March 08, 2013
1 min
How to draw route directions google maps API V2 from current location to destination Android

How to draw route directions google maps API V2 from current location to destination Android

First we will hit google directions url using our start and end latitute and longitude. After that we will read xml content on that webpage and parse in our app using xml parser. And then we will fetch list of latitude and longitude from that webpage and display on google map on android.

below is code:

After creating above file you can use below methods to get locations and display on google map.

The sourcePosition, destPosition are from the LatLng type, and you give them the wanted points.

Subscribe to our newsletter!

We'll send you the best of our blog just once a month. We promise.

Tags

google directionsmap v2maplocation

Share


Pawneshwer Gupta

Pawneshwer Gupta

Software Developer

Pawneshwer Gupta works as a software engineer who is enthusiastic in creating efficient and innovative software solutions.

Expertise

Python
Flutter
Laravel
NodeJS

Social Media

Related Posts

How to use Text To Speech inside RecyclerView in Android
How to use Text To Speech inside RecyclerView in Android
July 27, 2020
1 min
Learn Pain Less  © 2024, All Rights Reserved.
Crafted with by Prolong Services

Quick Links

Advertise with usAbout UsContact Us

Social Media