Android Question Changing coordinate from minutes to degree

Izmirov.Yaminovich

Member
Licensed User
Longtime User
Hi,
B4X:
Sub GPS_LocationChanged (Location1 As Location)
    GLabel1.Text = Location1.ConvertToMinutes(Location1.Latitude)
    GLabel2.Text = Location1.ConvertToMinutes(Location1.Longitude)
   
End Sub

I have a GPS location code as shown. This show the location in a Degree, Minutes, seconds form. How do I do it so that it can be shown in a degree form?

Thanks
 

Izmirov.Yaminovich

Member
Licensed User
Longtime User
It's alright, I've figure it out. Just put
B4X:
Sub GPS_LocationChanged (Location1 As Location)
    GLabel1.Text = Location1.Latitude
    GLabel2.Text = Location1.Longitude
   
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…