Android Question Geo: URI Intent Syntax

RichardN

Well-Known Member
Licensed User
Longtime User
The Android geo: URI syntax appears to be a limited subset of the RFC 5870 spec.


B4X:
Dim i As Intent
Dim URI As String

URI = "geo:0,0?q=lat,lng(label)"          'This works

URI = "geo:+" & lat & "+,+" & lon & "+?z=13"         'So does this

i.Initialize(i.ACTION_VIEW,URI)
i.SetComponent("googlemaps")
StartActivity(i)

My wish is to jump to a lat/long, at a specific zoom, drop a pin and label it. Unfortunately some of the URI parameters appear mutually exclusive, for instance <z=12> and (Label) will execute the first parameter encountered and ignore the other.

Has anybody arrived at a syntax that will achieve my wishlist ?
 
Top