S SCS Member Licensed User Longtime User Jan 18, 2014 #1 My initial plan is to create an Android Application to show my client nearby my service team current location (eg. with-in 2km). Of course, I have my own database to keep trace all my client latitude & longitude (LatLng). Follow the Tutorial http://www.b4x.com/android/forum/threads/google-maps-android-v2-tutorial.24415/#content and it works as expected. But I'm not able to show my CURRENT LOCATION on GoogleMaps Then I follow the GPS Tutorial http://www.b4x.com/android/forum/threads/gps-tutorial.6592/#content and the result point to DIFFERENT LatLng but not my current location. I did try on MapFragment.GetMap.MyLocationEnabled = True. The initial blue dot show wrong location. But after awhile (said 40 seconds or sometimes more longer), it shown the correct location or not change. My Question is, how we know the GPS is Ready to provide TRUE location? Is there a function like GPS.Ready() then we can retrive the LatLng to put the AddMaker on it? Or I need to check on the http://www.b4x.com/android/forum/threads/webviewextras.12453/ as well? SCS
My initial plan is to create an Android Application to show my client nearby my service team current location (eg. with-in 2km). Of course, I have my own database to keep trace all my client latitude & longitude (LatLng). Follow the Tutorial http://www.b4x.com/android/forum/threads/google-maps-android-v2-tutorial.24415/#content and it works as expected. But I'm not able to show my CURRENT LOCATION on GoogleMaps Then I follow the GPS Tutorial http://www.b4x.com/android/forum/threads/gps-tutorial.6592/#content and the result point to DIFFERENT LatLng but not my current location. I did try on MapFragment.GetMap.MyLocationEnabled = True. The initial blue dot show wrong location. But after awhile (said 40 seconds or sometimes more longer), it shown the correct location or not change. My Question is, how we know the GPS is Ready to provide TRUE location? Is there a function like GPS.Ready() then we can retrive the LatLng to put the AddMaker on it? Or I need to check on the http://www.b4x.com/android/forum/threads/webviewextras.12453/ as well? SCS
Erel B4X founder Staff member Licensed User Longtime User Jan 18, 2014 #2 The GPS library returns the coordinates that the GPS receiver found. These are the best known coordinates. If they are wrong then your device is not working properly. Once there is a 'fix' (LocationChanged event was raised) then the coordinates should be correct. Upvote 0
The GPS library returns the coordinates that the GPS receiver found. These are the best known coordinates. If they are wrong then your device is not working properly. Once there is a 'fix' (LocationChanged event was raised) then the coordinates should be correct.
S SCS Member Licensed User Longtime User Jan 18, 2014 #3 Thank Erel, it works fine when I try in OUTDOOR. Upvote 0