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
23
votes
2 answers

HTML5 Geolocation, GPS Only

Is there a way to make HTML5's Geolocation only work, if it is using a GPS device to get the location?
John
  • 460
  • 1
  • 5
  • 18
23
votes
2 answers

Distance from Lat/Lng point to Minor Arc segment

I need to calculate the shortest distance from a lat/lng GPS point P to a line segment described by 2 other lat/lng GPS points A and B. 'Cross-track distance' helps me to calculate the shortest distance between P and the great circle described by A…
ChrisDekker
  • 1,584
  • 18
  • 39
23
votes
3 answers

Getting GPS co-ordinates quicker programmatically without internet, but using network provider and mobile GPS

I have referred many questions on this topic, but it seems some of my requirements are missing: I want to get the GPS location at ~0.0001 accuracy Don't want to use internet; Though GSM/CDMA network is ok Should be obtained programmatically when…
iammilind
  • 68,093
  • 33
  • 169
  • 336
23
votes
1 answer

How do I use the Google Maps API GPS sensor?

All I've been able to find is how to specify the sensor parameter: http://code.google.com/apis/maps/documentation/v3/#SpecifyingSensor But nowhere does it say how to actually USE it. Isn't the whole point to be able to get the user's current…
renegadeofunk
  • 445
  • 1
  • 3
  • 11
22
votes
2 answers

Calculating area of a polygon drawn on google map

I am looking for an accurate algorithm or a service to calculate surface area on earth where points are calculated on the basis of GPS Coordinates. I am using Google Map Api version 3 and are drawing polygons based on recorded coordinates but I…
Kunal
  • 1,913
  • 6
  • 29
  • 45
22
votes
6 answers

Given a latitude and longitude, Get the location name

I am developing an application wherein I get the latitude, longitude in my android device and post them to a web server. and in a web application I show the location details with the help of google maps. Here I have huge collection of lat long…
Krishna
  • 1,454
  • 5
  • 16
  • 31
22
votes
3 answers

Use GPS and Network Provider at the same time in Android

I have implemented a locationlistener in my app which uses the Network Provider. This all works fine because i want a location quickly and with GPS Provider it takes ages. But I've come to a point in my app where location has to be accurate (max…
Galip
  • 5,435
  • 10
  • 37
  • 47
22
votes
6 answers

How can i calculate the distance between two gps points in Java?

I used this code but it doesnt work: Need the distance between two gps coordinates like 41.1212, 11.2323 in kilometers (Java) double d2r = (180 / Math.PI); double distance = 0; try{ double dlong = (endpoint.getLon() - startpoint.getLon()) *…
Benni
  • 321
  • 2
  • 3
  • 5
22
votes
4 answers

iOS9 not tracking location while in background

My app tracks location while in background... the location background mode is enabled and i use [self.locationManager startUpdatingLocation]; This works great on iOS7-8 but it stopped working on iOS9 In simulator it works, but on real device i get…
Peter Lapisu
  • 19,915
  • 16
  • 123
  • 179
22
votes
3 answers

Best practice to calculate the average speed from GPS coordinates

I have here a device which can give me GPS coordinates. The time interval I can define. I want to use it to calculate the average speed during driving or travelling by car. Actually I used a orthodrome formula to calculate the distance between two…
RoflcoptrException
  • 51,941
  • 35
  • 152
  • 200
22
votes
7 answers

onLocationChanged() never called

I am writing a code that brings current location but it is not giving me the location because it never calls onLocationChanged() .Is there any way to find the location. mobileLocation is coming 0 for this case, so the execution goes to the else…
abhishek ameta
  • 2,326
  • 7
  • 28
  • 35
21
votes
3 answers

What is the difference between track and route in a GPX file

I wanted to know what is the basic difference between a GPX track and route file
rajan sthapit
  • 4,194
  • 10
  • 42
  • 66
21
votes
3 answers

Sync Android devices via GPS time?

Short version: Problem: I need several Android devices to do something at the exact same time (within ca 100 milliseconds). For example, I want all devices to play a certain sound at previously determined point in time. Question: Could I use GPS…
user1057534
  • 211
  • 1
  • 2
  • 3
21
votes
4 answers

Find nearby users of an app (iPhone and Android)

I am working on an app that has an iPhone version as well as an Android version. My goal is... display a list of nearby users of my app (iPhone app users and Android app users). Lets say a list users which are currently within 1 mile or 2 miles…
Atif Azad
  • 1,294
  • 1
  • 16
  • 30
21
votes
5 answers

ACCESS_FINE_LOCATION AndroidManifest Permissions Not Being Granted

I am trying to utilize GPS in Android (2.2 and 2.3) but am getting the following error when I try to use the LocationManager object: WARN/System.err(522): java.lang.SecurityException: Provider network requires ACCESS_FINE_LOCATION or…
thedigitalsean
  • 229
  • 1
  • 2
  • 4