I have two EditText
where user enter two city name I want draw route between two city and distance between them on Google map.
Asked
Active
Viewed 449 times
0

Kaushik
- 6,150
- 5
- 39
- 54

Amol Tholbare
- 1
- 3
-
get lat long of city enter by u and drow path beetween two latlang – Naveen Tamrakar Nov 05 '14 at 06:45
-
You wan to show path using android default route application or your custom ? – Haresh Chhelana Nov 05 '14 at 06:56
-
how to get lat long of two city enter in edittext by their name...please naveen sir help me – Amol Tholbare Nov 07 '14 at 05:42
-
@haresh sir i want to draw a rpute between city enter by user in two edittext – Amol Tholbare Nov 07 '14 at 07:02
-
Check : https://developers.google.com/maps/documentation/directions/ – Haresh Chhelana Nov 07 '14 at 09:24
1 Answers
0
You can use Google Directions API to get the routes between them.
Then you can see the accepted answer here of how to encode the "points"-parameter to LatLng's / Polylines.
This should cover your question i guess: Get driving directions using Google Maps API v2
What you need to know to do this: How to do network requests, how to parse JSON, and how to setup a GoogleMap in your app.
-
how do i get lat long for two enter city in edittext by city name? – Amol Tholbare Nov 07 '14 at 06:52