S sigster Active Member Licensed User Longtime User Jul 7, 2012 #1 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 Code: Copy 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 16.6 KB · Views: 522 Last edited: Jul 7, 2012
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 Code: Copy 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
warwound Expert Licensed User Longtime User Jul 7, 2012 #2 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: Code: Copy ' does this display Marker B? URI= "geo:" & lat & "," & lon Code: Copy ' 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
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: Code: Copy ' does this display Marker B? URI= "geo:" & lat & "," & lon Code: Copy ' does this display Marker A? URI= "geo:0,0?q=" & lat & "," & lon Reverse geocoding is never as accurate as using true coordinates. Martin.
S sigster Active Member Licensed User Longtime User Jul 8, 2012 #3 Thanks warwound this works A and B, but B show the please with out marker but it works Thanks Code: Copy URI= "geo:0,0?q=" & lat & "," & lon Upvote 0
Thanks warwound this works A and B, but B show the please with out marker but it works Thanks Code: Copy URI= "geo:0,0?q=" & lat & "," & lon