Issue
How to start android google map direction intent with source and destination latitude and longitude?
And also with traveling mode like bicycle, car...
Solution
Put navigation mode as dirflg.
d
for driving.b
for bicycle.w
for walking.l
for two wheeler.val uri = Uri.parse("http://maps.google.com/maps?saddr=33.489954,73.098888 &daddr=33.499009,73.101076 &dirflg=w") val intent = Intent(Intent.ACTION_VIEW, uri) intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK startActivity(intent)
Answered By - usman nazir
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.