fingerup Posted October 5, 2010 Share Posted October 5, 2010 Bonjour a tous, Et voici mon premier poste sur ce forum :) Je n'arrive pas à faire quelque chose de pourtant important, afficher un itinéraire entre deux point sur une carte Gmap. J'ai pu lancer l'appli Maps de l'android par mon appli, comme expliqué ici, mais impossible de lui passé les paramètre saddr et daddr comme pour gmap sur le web (ici). Auriez vous une solution pour créer un itininéraire sur une carte Gmap??? Merci a vous... Link to comment Share on other sites More sharing options...
Profete162 Posted October 5, 2010 Share Posted October 5, 2010 2eme lien Google apres une recherche "android intent maps directions" Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?saddr=20.344,34.34&daddr=20.5666,45.345"); startActivity(intent); Ca fonctionne? Link to comment Share on other sites More sharing options...
fingerup Posted October 5, 2010 Author Share Posted October 5, 2010 Et oui ça fonctionne plutôt bien. une fois le lien ouvert le phone affiche un popup pour que je choisi si je veux ouvrir la carte avec web ou l'app Maps. Merci beaucoup :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.