I am developing navigation base application. In these application, I have to open Map application to draw path between source & destination latitude/address with Traffic Enable.
I already create functionality to open Google map through Intent and draw the path between two points.
Is it possible that, to add Traffic Layer at time of passing Intent? Or Which parameter I need to add?
Thanks in advance.
Best How To :
// Your source location will be your current location
// You can change your destination location
double destinationLatitude = 22.3000;
double destinationLongitude = 73.2003;
String url = "http://maps.google.com/maps?f=d&daddr="+ destinationLatitude+","+destinationLongitude+"&dirflg=d&layer=t";
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(url));