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
30
votes
1 answer

How can I enable disable GPS programmatically in Android?

I am creating an anti-theft application and, locating my phone through sms and it works perfectly until 2.3. But in 4.0 I can't turn on or off gps programmatically is there any other possible way to switch on gps through code.
Gopi.cs
  • 985
  • 1
  • 16
  • 41
29
votes
6 answers

How to save GPS coordinates in exif data on Android?

I am writing GPS coordinates to my JPEG image, and the coordinates are correct (as demonstrated by my logcat output) but it appears that it's being corrupted somehow. Reading the exif data results in either null values or, in the case of my GPS:…
Brian D
  • 9,863
  • 18
  • 61
  • 96
29
votes
9 answers

Getting GPS data from an image's EXIF in C#

I am developing a system that allows for an image to be uploaded to a server using ASP.NET C#. I am processing the image and all is working great. I have managed to find a method that reads the Date Created EXIF data and am parsing it as a DateTime.…
tmutton
  • 1,091
  • 7
  • 19
  • 42
29
votes
16 answers

React Native Android location request timed out

In IOS there isn't a problem while looking for gps coords. It works fine. On Android side its not stable as IOS. This problem both in real device and emulator. Sometimes it can find location, but sometimes not. Looking for 3days but there wasn't…
İsmail Şener
  • 413
  • 2
  • 6
  • 14
29
votes
3 answers

Interpreting GPS info of exif data from photo in python

I am writing a small program to get the GPS info of a iphone jpg photo. The library I am using is the PIL in python. Now I am able to get the GPSInfo, which is something like: {1: 'N', 2: ((1, 1), (20, 1), (5365, 100)), 3: 'E', 4: ((103, 1),…
fyr91
  • 1,253
  • 5
  • 17
  • 33
29
votes
11 answers

Latitude/Longitude storage and compression in C

Does anyone know the most efficient representation for lat/long coordinates? Accuracy level should be enough for consumer GPS devices. Most implementations seem to use double for each unit, but I'm suspicious that a float or fixed point format…
Justicle
  • 14,761
  • 17
  • 70
  • 94
28
votes
3 answers

Android location permissions

In my Android application I'm willing to use GPS locations. What are the main permissions that I should included in android manifest file in order to use GPS locations. In case of lost the GPS signal strength, is there any way to triangulate the…
Samantha Withanage
  • 3,811
  • 10
  • 30
  • 59
28
votes
4 answers

getlastknownlocation always return null after I re-install the apk file via eclipse

Recently, I created a simple application to get the GPS location and display it on an Android phone. In the beginning I was able to get the location after a few tries. But, after I reinstalled the APK file, the getLastKnownLocation() always returns…
Student
  • 561
  • 1
  • 9
  • 16
28
votes
1 answer

GPS Manifest: GPS in App is optional, want to make it available to GPS less devices too

On uploading my App onto the market today, I saw that it is only available to devices with GPS, so this excludes some tablets. GPS in my App is optional. Is it possible to release one App for devices with and without GPS or do I need to make an…
stefple
  • 1,007
  • 17
  • 28
28
votes
7 answers

How to programmatically enable GPS in Android Cupcake

I'm currently writing an app in Android that works with the GPS. At the moment I'm able to work out whether the GPS is enabled. My problem is that I want to enable the GPS on app startup if it is disabled. How can I do this programmaticaly?
Chiwai Chan
  • 4,716
  • 4
  • 30
  • 33
27
votes
4 answers

How can I get the distance between two point by latlng?

I want to get the distance from A to B by latlng.When i run my app with the following code,it return a wrong result. Fx i tryed A( 31.172740,115.0081630) ,then B(30.6055980,114.3603140),the result is about 3111km.but the right distance is about…
lanyimo
  • 367
  • 1
  • 3
  • 13
27
votes
5 answers

Stop Location Listener in Android

In my android app I need to get current GPS location of the user at the start of the application only if location has change from the previous location. But the problem is when I inside the application if location change (ie If user was traveling…
Chrishan
  • 4,076
  • 7
  • 48
  • 67
27
votes
1 answer

Background GPS in iOS. Is this possible?

I was wondering if it was possible to get the location of the iPhone with an app that isnt running, or at least running in the background. What I want to do is have the iPhone send a push notification when it arrives at a certain coordinate. Is…
Ben Cohen
  • 273
  • 1
  • 3
  • 4
27
votes
8 answers

Total distance calculation from LatLng List

Im using dart/flutter and the 'package:latlong/latlong.dart' to parse a GPX file into a list of LatLng objects. That is working fine, but the next step is to find the total distance of the route. The question here is how can I get the total…
Yonkee
  • 1,781
  • 3
  • 31
  • 56
27
votes
4 answers

Detect or prevent if user uses fake location

I will block a user from using my app if they fake the location. So I use isFromMockProvider to check if the location is fake (follow here). But isFromMockProvider() may return false for faked locations in some cases. public void…
Linh
  • 57,942
  • 23
  • 262
  • 279