Is location service required for internet access?

I'm a little confused about the answers. can anyone give me the correct answer to solve this. I have developed an emergency alert application. I am getting location from GPS and network service. In some situation, there is no mobile data or WiFi connections, so there is no internet.

I would like to know if my application will still receive LAT / LONG or internet is required to receive LAT / LONG?

I am trying this on a Galaxy Nexus which is running version 4.3 ...

I use the Google play service:

@Override
public void onConnected(Bundle bundle) 
{
    locationRequest = LocationRequest.create();
    locationRequest.setInterval(1000);
    locationRequest.setFastestInterval(1000); 
    locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);

    LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, locationRequest, this);
}

@Override
public void onLocationChanged(Location location) 
{
    Log.e("location","onLocationChanged");

    if (location != null) 
    {
      Log.e("SaveCurrent","Location"+String.valueOf(location.getLatitude()));
      Log.e("SaveCurrent","Location"+String.valueOf(location.getLongitude()));
    }
 }

      

Thank!

+3


source to share


2 answers


If you want reverse geocoding, you need an internet connection.



+2


source


GPS - Geolocation services operate using satellites, so no internet is required for your mobile phone. So the coordinates can be obtained using one, which would be very accurate.

According to wikipedia also: - "The Global Positioning System (GPS) is a space-based satellite navigation system that provides position and time information in all weather conditions anywhere on or near Earth where there is an unobstructed line of sight of up to four or more GPS satellites ".



Internet location. Besides GPS, you can also get your current position using the internet, which uses your mobile or Wi-Fi network to triangulate your current location. It is not as accurate as GPS.

So, for your emergency application, you can get your current location if GPS satellite services are available without an internet connection.

+1


source







All Articles