GPS Lat/Long into Google Maps

rfresh

Well-Known Member
Licensed User
Longtime User
I'm getting the GPS Lat/Long and want to compose an http into google maps but the lat long isn't calling up my city. Do I have do another conversion of the GPS lat long before I can use it with google maps?

My current URL is this one but it just shows the whole USA:

33:54.04181,-118:6.84766 - Google Maps

Thanks...
 

warwound

Expert
Licensed User
Longtime User
An idea might be to check if the Google Maps app is installed on the device.

If it is installed use an Intent to start Google Maps otherwise use an Intent to open the browser at maps.google.com.

The Google Maps app does a better job of displaying a location in my opinion so i'd start that if possible and fallback to the browser option only if Google Maps is not installed.

Martin.
 
Upvote 0

rfresh

Well-Known Member
Licensed User
Longtime User
I was using from the GPS example:

B4X:
Sub GPS_LocationChanged (Location1 As Location)
    Log("Lat = " & Location1.ConvertToMinutes(Location1.Latitude))
    Log("Lon = " & Location1.ConvertToMinutes(Location1.Longitude))
    Log("Speed = " & Location1.Speed)
End Sub

I'll remove the Convert() -- thanks..
 
Upvote 0

rfresh

Well-Known Member
Licensed User
Longtime User
Does anyone know if I can get a city name from my B4A GPS coordinates from Google maps?
 
Upvote 0
Top