iPhone Compass GPS Direction

There is a standard “heading” or “bearing” equation that you can use – if you are at lat1,lon1, and the point you are interested in is at lat2,lon2, then the equation is: heading = atan2( sin(lon2-lon1)*cos(lat2), cos(lat1)*sin(lat2) – sin(lat1)*cos(lat2)*cos(lon2-lon1)) This gives you a bearing in radians, which you can convert to degrees by multiplying by … Read more

Is it possible to get the atomic clock timestamp from the iphone GPS?

This works to get the GPS time: #import <CoreLocation/CoreLocation.h> CLLocation* gps = [[CLLocation alloc] initWithLatitude:(CLLocationDegrees) 0.0 longitude:(CLLocationDegrees) 0.0]; NSDate* now = gps.timestamp; It doesn’t seem to be tamper-proof though. I tried this code on an iPhone 4 in airplane mode (iOS 6.1), and even then it gives a time all right. But unfortunately this time … Read more

Easting northing to latitude longitude

Eastings and northings are distances east and north, respectively, of a base point. The base point is usually a latitude and longitude, and eastings and northings are normally expressed in meters or feet. The easting and northing, however, is usually offset a particular value to make them positive and allow them to express places west … Read more

Sync Android devices via GPS time?

You can get the time difference in milliseconds from currentTimeMillis() and Location.getTime() in the onLocationChanged() callback. Use requestSingleUpdate() I just want to add that, if the user has a data connection they can use NTP time, which is even more accurate, as the GPS internal clock might drift and correcting it takes a while. EDIT: … Read more

How can I get continuous location updates in Android like in Google Maps?

Use Fused location provider in Android set your interval in that: For an example create your activity like this: public class LocationActivity extends Activity implements LocationListener, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener { private static final String TAG = “LocationActivity”; private static final long INTERVAL = 1000 * 10; private static final long FASTEST_INTERVAL = 1000 * 5; Button … Read more

How to save GPS coordinates in exif data on Android?

GPSLatitude Indicates the latitude. The latitude is expressed as three RATIONAL values giving the degrees, minutes, and seconds, respectively. If latitude is expressed as degrees, minutes and seconds, a typical format would be dd/1,mm/1,ss/1. When degrees and minutes are used and, for example, fractions of minutes are given up to two decimal places, the format … Read more

Determining the speed of a vehicle using GPS in android

for more information onCalculate Speed from GPS Location Change in Android Mobile Device view this link Mainly there are two ways to calculate the speed from mobile phone. Calculate speed from Accelerometer Calculate speed from GPS Technology Unlike Accelerometer from GPS Technology if you’re going to calculate speed you must enable data connection and GPS … Read more

Getting GPS coordinates on Windows phone 7

Here’s a simple example: GeoCoordinateWatcher watcher; watcher = new GeoCoordinateWatcher(GeoPositionAccuracy.Default) { MovementThreshold = 20 }; watcher.PositionChanged += this.watcher_PositionChanged; watcher.StatusChanged += this.watcher_StatusChanged; watcher.Start(); private void watcher_StatusChanged(object sender, GeoPositionStatusChangedEventArgs e) { switch (e.Status) { case GeoPositionStatus.Disabled: // location is unsupported on this device break; case GeoPositionStatus.NoData: // data unavailable break; } } private void watcher_PositionChanged(object sender, GeoPositionChangedEventArgs<GeoCoordinate> … Read more