Hello,
The GPS library handles the GPS. But you should look at FusedLocation Provider (https://www.b4x.com/android/forum/threads/fusedlocationprovider.50614/) to get the network location.
If you need more location precision in the building (like "in which room I am"), not simple but feasable, is to use the Redpin dot org server (you'll have to tweak btw).