C Christian García S. Active Member Licensed User Nov 27, 2019 #1 Hi, I am using iLocation library, but when I am inside a building I can't get position, with this library or with some other I can get the last known location like FusedLocationProvider on Android through Google Services. I need this because when I am in a building I need to calculate the distance to another place and last known location calculated by OS will be very usefull. Thanks
Hi, I am using iLocation library, but when I am inside a building I can't get position, with this library or with some other I can get the last known location like FusedLocationProvider on Android through Google Services. I need this because when I am in a building I need to calculate the distance to another place and last known location calculated by OS will be very usefull. Thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 28, 2019 #2 iLocation works in a similar way to FusedLocationProvider. It is not limited to GPS. You can get the last known location with: Code: Copy Dim no As NativeObject = LocationManager Dim location As Location = no.GetField("manager").RunMethod("location", Null) If location.IsInitialized Then ... Upvote 0
iLocation works in a similar way to FusedLocationProvider. It is not limited to GPS. You can get the last known location with: Code: Copy Dim no As NativeObject = LocationManager Dim location As Location = no.GetField("manager").RunMethod("location", Null) If location.IsInitialized Then ...