iOS Question Launch Google Navigation and StreetView ?

marcick

Well-Known Member
Licensed User
Longtime User
I'm using this code on Android to launch, outside the app, Google Navigation and Google StreetView.

Is it possible to do the same on IOS ?

B4X:
    Dim mapIntent As Intent
    Dim lla As Double=45.0
    Dim llo As Double=8.0
    Dim geoURI As String = "google.navigation:q="& lla &"," & llo
    mapIntent.Initialize(mapIntent.ACTION_VIEW,geoURI)
    StartActivity(mapIntent)
    
    Dim cp As CameraPosition=gmap.CameraPosition
    Dim Uri As String
    Uri="google.streetview:cbll=" & cp.Target.Latitude & "," & cp.Target.Longitude & "&cbp=0," & cp.Bearing & ",0," & cp.Zoom & "," & cp.Tilt
    Dim Intent1 As Intent
    Intent1.Initialize(Intent1.ACTION_VIEW,Uri)
    Intent1.SetComponent("googlemaps")
    StartActivity(Intent1)
 

MarcoRome

Expert
Licensed User
Longtime User
Try


1704370704806.png



1704370743473.png


B4X:
Private mainstr As String = "https://www.google.com/maps/dir/?api=1&[I]....[/I]"
    If (Main.App.CanOpenURL(mainstr)) Then
        Main.App.OpenURL(mainstr)
    End If
 
Upvote 0
Top