I have a web application that needs to open a destination in the native maps/navigation app on the device. On most Android devices this is google maps, and I can simply open a link that will open google maps with the directions to the passed destination (latitude, longitude coordinates). In the case of the TomTom Pro 8375, there seems to be no way of opening a destination in the navigator app from the browser.
We have tried this, amongst others, with the following:
-
tomtomgo://x-callback-url/navigate?destination=52.371183,4.892504
-
tomtomhome://geo:action=navigateto&lat=mylat&long=mylon&name=myname
Are there any known workarounds to achieve this? I have received this as a response from the support but this applies only for kotlin or java.
Uri gmmIntentUri = Uri.parse("google.navigation:q=52.0000,12.0000");
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
startActivity(mapIntent)
Is there a way that I can make this work in Javascript ?
I would really appreciate any suggestions!
Thank you!