In this post, we will learn:-
1. How to find bearing between two latitude and longitude?
2. How to find direction between two latitude and longitude?
3. How to find distance between two latitude and longitude?
4. How to draw line between two latitude and longitude according to walking & driving direction?
At the end of post, I will share my project which will have more functionality than this post.
Calculate bearing between two locations:-
Calculate distance between two locations:-
Get direction between two locations:-
I used AsyncTask to Draw line between two locations after getting latitude and longitude of my location and friend location:-
I have given some code examples in previous and this post to understand Google map 2 deeply and working on it easily. Some user wants voice as well in android map, so I added voice code in comment to help all developers. Project contains Login, Registration and searching Friends functionality as well. Download complete project from Github: Android Google Map 2 or download and check APK file in your android device.
★ Advance Android Google Map 2 Tutorial with Examples - Part 1
★ Get Latitude, Longitude and Address of current Location
★ Android Login,Register page with MySQL and PHP Project
★ Create List and perform Actions on it
★ Convert Text to Speech