Android Question How to use Intent to show multiple locations on same Google Map

toby

Well-Known Member
Licensed User
Longtime User
I know how to show one single location on Google map with the following code

B4X:
 dim Url as string="https://maps.google.com/maps?q=Empire State Building, New York, NY"
 Dim intent1 As Intent
 If Url.StartsWith("https://maps.google.com/map") Then
     intent1.Initialize(intent1.ACTION_VIEW, Url)
     StartActivity(intent1)
 End If

How do I change the above code so that the following 3 locations will be shown on the same map? The map center will be the first location. Note: these locations are not related.
1. Empire State Building, New York, NY
2. Pennsylvania Station, New York, NY
3. Manhattan Ferry, New York, NY


TIA
 

DonManfred

Expert
Licensed User
Longtime User
1. I don´t think this is posssible. You need to consult the Google Maps Documentation.
2. You should implement GoogleMaps in your app; you can show as many locationmarkers as you want.
 
Last edited:
Upvote 0
Top