Nella mia app ho integrato la OpenStreetMap, in cui ho recuperato le coordinate di origine e destinazione. Devo passare quelle coordinate a OpenStreetMap App utilizzando Intento classe, per quello ho bisogno di Uri.OpenStreetMap ha punto (origine) a punto (destinazione) direzione uri da utilizzare in Android?
Dopo aver cercato a lungo 2 giorni ho ricevuto questa Uri
http://www.openstreetmap.org/?mlat=latitude&mlon=longitude&zoom=12
che attualmente supporta solo un luogo, ma io non lo voglio.
Qualcuno può aiutarmi per favore con questo? Grazie in anticipo ...
Qui è il mio codice qui sotto
Intent sendLocationToMap = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("http://openstreetmap.org/?mlat=13.074847&mlon=80.271019&zoom=12"));
startActivity(sendLocationToMap);
ho provato come di sotto di un 'Intent sendLocationToMap = new Intent (android.content.Intent.ACTION_VIEW, \t \t \t \t \t Uri.parse (" http://www.openstreetmap.org/directions?motore = osrm_car & route =% "+ \t \t \t \t \t \t \t sourceLatitude + "%" + sourceLongitude + \t \t \t \t \t \t \t destinationLatitude + "%" + destinationLongitude)); \t \t \t \t \t startActivity (sendLocationToMap) ma diceva "** Impossibile analizzare l'intento geografico" http://www.openstreetmap.org/directions?engine=osrm_car&route=%13.06268%80.2653 219% 36427300% -99.27137000 ** " – user1874936
Quale app usi per aprire questo intento? – Ziem
Ho provato con l'app OsmAnd – user1874936