Questions tagged [gps]

Abbreviation for Global Positioning System; a navigational system using satellite signals to fix the location of a radio receiver on or above the earth's surface. Also "GPS" refers to the radio receiver used to receive GPS signals.

Global Positioning System (GPS) is a space-based global navigation satellite system (GNSS) that provides reliable location and time information in all weather and at all times and anywhere on or near the Earth when and where there is an unobstructed line of sight to four or more GPS satellites.

It is freely accessible to anybody with a GPS receiver. Apple, Google, and other mobile providers have developed frameworks to deal with the location services calculated from GPS, WiFi or Cell Tower.

More information can be found at:

10257 questions
90
votes
17 answers

How can I check the current status of the GPS receiver?

How can I check the current status of the GPS receiver? I already checked the LocationListener onStatusChanged method but somehow it seems that is not working, or just the wrong possibility. Basically I just need to know if the GPS icon at the top…
nr1
  • 1,019
  • 2
  • 10
  • 8
85
votes
4 answers

Difference between LocationRequest setInterval (long millis) and LocationRequest setFastestInterval (long millis)

I am writing my own background location updates for interval of every 5 minutes in android. I would like to know the difference between setInterval and setFastestInterval When I setInterval to 5 mins and setFastestInterval to 2 mins. The location…
TheDevMan
  • 5,914
  • 12
  • 74
  • 144
85
votes
3 answers

Lat Long or Long Lat

There seems to be no standard whether Longitude,Latitude or Latitude,Longitude should be used. WSG84 and stuff based directly on it, seem to prefer Long,Lat. "Normal people" always tend to speak of Lat, Long - so I've very often seen code or…
Thomas M.
  • 1,496
  • 1
  • 10
  • 21
76
votes
14 answers

Emulator's Location simulation not working

I would like to lower the minimum API level of my application to 4.4(KitKat) from 5.0(Lollipop) Sadly I couldn't get any real devices so I have to work with an emulator. My app is heavily based on user's location so the main testing must be target…
Adam Varhegyi
  • 11,307
  • 33
  • 124
  • 222
75
votes
7 answers

Get GPS location via a service in Android

I need to monitor user's locations using a background service, and then load them and show the path to the user. Using an activity, it was quite easy to get GPS locations, but when I got to do it via a service, I came into a problem as it seems to…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
72
votes
12 answers

iOS: App is not asking user's permission while installing the app. getting kCLAuthorizationStatusNotDetermined every time - Objective-c & Swift

I am trying to fetch user location in my iOS app. I have included corelocation framework in my project first. Then on a button click I am invoking the core location api as below. When I am trying to install this in a device, the core location never…
Rashmi Ranjan mallick
  • 6,390
  • 8
  • 42
  • 59
71
votes
7 answers

How to validate latitude and longitude

I have two UITextFields which users can enter in a latitude and longitude, these co-ordinates are then used to create a pin on an MKMapView. I want find a way to validate whether the values they enter are actual GPS co-ordinates or just a load of…
user843337
71
votes
5 answers

Does GPS require Internet?

Is it necessary to turn both Internet and GPS on before I can read my current location(country, city, locality etc) in my app? If they are, then any alternative way to get the location only from GPS? Since the internet availability is an issue.
Ibad Baig
  • 2,276
  • 5
  • 22
  • 27
68
votes
5 answers

Is Android using NTP to sync time?

Do Android Devices use the network time protocol (NTP) to synchronize the time? In my Device-Settings I see a checkbox with the following text "synchronize with network", but I don't know if they are using NTP. I need this for my Bachelor Thesis for…
iTamp
  • 793
  • 1
  • 8
  • 12
67
votes
7 answers

Is it possible to create turn-by-turn GPS navigation app on Android/iOS using Google Maps?

Today I've talked to a client and he wants to build a simple navigation APP on Android! Basically we could use Google maps, place some of "our" markers to show some locations (restaurants, hotels etc.) .. also we need to show user's friends near…
mz87
  • 1,398
  • 2
  • 13
  • 13
66
votes
2 answers

Calculate distance between two place using latitude-longitude in gmap for iPhone

Possible Duplicate: GPS coordinates in degrees to calculate distances How to Calculate distance between two place using latitude-longitude in gmap for iPhone? Calculate distance between two place using latitude-longitude in gmap for iPhone
Durga
  • 933
  • 1
  • 9
  • 12
66
votes
13 answers

LocationClient getLastLocation() return null

Like the questions someone encountered before I tested one the nexus s(4.0.4 with google play service available) and avd (4.2.2 with google api), in both case locationclient's getLastLocation() always return null. public class MainActivity extends…
oscarthecat
  • 1,811
  • 1
  • 18
  • 28
63
votes
8 answers

Android: How to get accurate altitude?

I need to get an accurate measurement of altitude using GPS only. I tried Location.getAltitude(), but that is terribly inaccurate. Any advice?
ask
  • 2,160
  • 7
  • 31
  • 42
62
votes
7 answers

How to enable Location access programmatically in android?

I am working on map related android application and I need to check location access enable or not in client side development if location services is not enable show the dialog prompt. How to enable "Location access" Programmatically in android?
NarasimhaKolla
  • 791
  • 3
  • 7
  • 14
60
votes
8 answers

get the current location fast and once in android

I have an android application that need device current location (latitude and longitude). I've tried some tutorial on the net and specially some solutions from stack overflow, but they doesn't work well for me. My requirement is so simple: First I…
Mohamad MohamadPoor
  • 1,350
  • 2
  • 14
  • 35