Googlemaps wrong place on map

sigster

Active Member
Licensed User
Longtime User
Hi

I am try to understand Googlemaps

When I try to show 64.141822,-21.920793 in android
it show the please 75m away

in the photo
A = is what google map show me
B = is the what I want to see

can I fix this someway or is this just how Google maps works :)


B4X:
   Dim Intent1 As Intent
   lat = lblLat.Text
   lon = lblLon.Text 
   URI= "geo:" & lat & "," & lon & "?q=" & lat & "," & lon

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


Regards
Sigster
 

Attachments

  • kortid.png
    kortid.png
    16.6 KB · Views: 188
Last edited:

warwound

Expert
Licensed User
Longtime User
You're passing the same coordinates as both geopoint and query.

So Google is showing Marker B for the exact geopoint and then performing a reverse geocode on the query values and getting an approximate location which is Marker A.
(I think)

Try passing just geo and just q values to see what Google Maps displays:

B4X:
' does this display Marker B?
URI= "geo:" & lat & "," & lon

B4X:
' does this display Marker A?
URI= "geo:0,0?q=" & lat & "," & lon

Reverse geocoding is never as accurate as using true coordinates.

Martin.
 
Upvote 0

sigster

Active Member
Licensed User
Longtime User
Thanks warwound

this works A and B, but B show the please with out marker
but it works :) Thanks

B4X:
URI= "geo:0,0?q=" & lat & "," & lon
 
Upvote 0
Top