A
A
Artem2014-12-23 14:24:32
Android
Artem, 2014-12-23 14:24:32

How to force Google Navigation to display only one route?

Inside my app, I'm running navigation from Google like this:

Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?daddr=" + mCity));
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
startActivity(intent);

Such a call should build a route from my current GPS location to the destination city. But often the application prompts me to choose one of several routes, as shown in the screenshot below. How can I force it to always display only one route, with no choice?
a78f31eb3ed9465cae16588ecd115229.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question