简体   繁体   中英

How can I plot routes “from” a position “to” another position on Google Maps v2?

How can I plot routes "from" a position "to" another position on Google Maps v2?

I did a simple aplication with the api v2, but now I would plot routes to different position in the map.

is it possible? thanks in advance! :)

use - final Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://maps.google.com/maps?" + "saddr="+from +"&daddr="+to));

intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");

startActivity(intent);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM