Depends on the method you use. If you are using "fused" mode, location service will use a combination of wifi/data/GPS - whichever gives the best result
@TIMAI2 I don't know for sure, but the timeouts seem to be if I leave the test app sitting idle for a while and my data is switched off. For instance, I just left the phone for 15 minutes and now have been spending the last 5 minutes trying to get gl1 location. Just getting "ERROR(3): Timeout expired" each time.
I then tried gl2 for a minute or so - same issue.
I then tried gl3, and it pinged first go. I think that was luck though.
Maybe it's a warm-up thing? The device loses its GPS lock if it isn't polling location and takes some time to regain it?
I've increased the timeout to 10 seconds. In doing so, I notice after leaving the phone idle for a bit, the location retrieval can take more than 5 seconds. Might be all is needed. I'll keep testing.