This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
intents:google_maps [2016/05/06 20:30] stevegarman [Basic Map] check app is available |
intents:google_maps [2018/12/30 13:30] (current) |
||
---|---|---|---|
Line 23: | Line 23: | ||
if(app.IsAppInstalled( packageName )) | if(app.IsAppInstalled( packageName )) | ||
app.SendIntent( packageName, | app.SendIntent( packageName, | ||
- | else app.Alert(" | + | else |
+ | { | ||
+ | app.Alert(" | ||
+ | app.OpenUrl(" | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | ===== Turn by Turn Navigation ===== | ||
+ | This function could be used instead of simpleMap above to start navigating towards the destination. | ||
+ | <code JavaScript navigate.js> | ||
+ | function navigateTo(latitude, | ||
+ | { | ||
+ | var packageName = " | ||
+ | var className = null; | ||
+ | var action = " | ||
+ | var uri = " | ||
+ | if(app.IsAppInstalled( packageName )) | ||
+ | app.SendIntent( packageName, | ||
+ | else | ||
+ | | ||
} | } | ||
</ | </ | ||
- |