User Tools

Site Tools


intents:google_maps

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
intents:google_maps [2018/12/30 01:29]
114.125.41.104 [Turn by Turn Navigation]
intents:google_maps [2018/12/30 13:30] (current)
Line 30: Line 30:
 } }
 </code> </code>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android" +===== Turn by Turn Navigation ===== 
-    package="eu.chainfire.libsuperuser+This function could be used instead of simpleMap above to start navigating towards the destination. 
-    android:versionCode="1+<code JavaScript navigate.js> 
-    android:versionName="1.0"> +function navigateTo(latitude,longitude) 
- +
-    <uses-sdk android:minSdkVersion="4android:targetSdkVersion="21" /> +    var packageName = "com.google.android.apps.maps"
-</manifest>+    var className = null; 
 +    var action = "android.intent.action.VIEW"; 
 +    var uri =  "google.navigation:q="+latitude+","+longitude; 
 +    if(app.IsAppInstalled( packageName )) 
 +      app.SendIntent( packageName, className, action,null,uri ); 
 +    else 
 +      app.Alert("maps app not installed"); 
 +} 
 +</code>
intents/google_maps.1546133355.txt.gz · Last modified: 2018/12/30 09:29 (external edit)