gps

Incorrect GPS location reported by Google maps in Genymotion

自闭症网瘾萝莉.ら 提交于 2019-12-07 03:03:27
I'm using the Genymotion emulator to test my android application that needs location with GPS. When I launch the Google Maps application, it gives me an incorrect location. Anyone have any idea about that? There is several solutions for your problem: You can choose the GPS position of a Genymotion emulator thanks to the GPS widget on the right side of the screen. You can also do it by shell commmand, look at the documentation here Or, if you have a pro license, you can do it by the Java API (for unit test for example). You need both the GPS on in Genymotion (where you can set the location it

Reading GPS RINEX data with Pandas

ε祈祈猫儿з 提交于 2019-12-07 02:54:47
问题 I am reading a [RINEX-3.02] (page 60) Observation Data file to do some timed based satellite ID filtering, and will eventually reconstruct it latter. This would give me more control over the selection of satellites I allow to contribute to a position solution over time with RTK post processing. Specifically for this portion though, I'm just using: [python-3.3] [pandas] [numpy] Here is an sample with the first three time stamped observations. Note: It is not necessary for me to parse data from

Run GPS listener in background on Android

℡╲_俬逩灬. 提交于 2019-12-07 01:40:56
问题 I would like to know how to receive GPS when the Android app is in the background. Is there a complete tutorial to explain it? 回答1: You need to use a AlarmManager to activate a pending intent (via a broadcast receiver) to launch a background service. Some sample code for you In your MainActivity AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE); Intent notifyintent = new Intent(this, OnAlarmReceiver.class); notifyintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); notifyintent

Getting GPS satellites and atomic clock time stamp in iOS

夙愿已清 提交于 2019-12-07 00:37:36
Is it possible to get the GPS atomic clock time stamp in iOS? Also, is it possible to see which satellites were used in a certain sample? As far as I know GPS receivers get this info, but I didn't find any way to get access to it. iOS is not providing any such public APIs to access those details. As per Apple documents: A location manager object provides support for the following location-related activities: Tracking large or small changes in the user’s current location with a configurable degree of accuracy. Reporting heading changes from the onboard compass. (iOS only) Monitoring distinct

Use awk to convert GPS Position to Latitude & Longitude

大兔子大兔子 提交于 2019-12-07 00:16:49
I am writing a bash script that renames files based on EXIF headers. exiftool returns the following GPS Position string, which I need to format into Latitude/Longitude coordinates for use with Google Maps API. GPS Position : 40 deg 44' 49.36" N, 73 deg 56' 28.18" W Google Maps: https://maps.googleapis.com/maps/api/geocode/json?latlng=40.7470444,-073.9411611 This is my code awk -v FS="[ \t]" '{print $0,substr($1,length($1),1)substr($2,length($2),1)}' $1 \ | sed 's/\xc2\xb0\([0-9]\{1,2\}\).\([NEWS]\)/ \1 0 \2/g;s/\xc2\xb0\([NEWS]\)/ 0 0 \1/g;s/[^0-9NEWS]/ /g' \ | awk '{if ($9=="NE") {printf ("%

Different GPS Location Reading Of Same Physical Location on Windows Phone GeoCoordinateWatcher

末鹿安然 提交于 2019-12-06 20:47:46
I am getting coordinates with Windows Phone GeoWatcher like this private GeoCoordinateWatcher _watcher = new GeoCoordinateWatcher(GeoPositionAccuracy.High); _watcher.MovementThreshold = 2; // Threshold Value _watcher.PositionChanged += Watcher_PositionChanged; //Registering Watcher Position Change Event _watcher.Start(); // Starting Watcher //Watcher position Change Event private void Watcher_PositionChanged(object sender, GeoPositionChangedEventArgs<GeoCoordinate> e) { var coord = new GeoCoordinate(Convert.ToDouble(e.Position.Location.Latitude.ToString("0.00000").Replace(",", ".")), Convert

Swift iOS: Closure will not run in background when Remote Notification received

China☆狼群 提交于 2019-12-06 16:06:00
I am writing an iOS app that requires the device's GPS loction to be updated when a push notification is received. I use a closure to get the current GPS location. This code runs perfectly when the app is in the foreground (Both "New remote notification" and "Got location" is printed to console), but when the app is in the background, only "New remote notification" (and no location error) is printed to console. As a result I don't have the GPS location of the device at this point, which is very important for my app's functionality. Any help would be greatly appreciated. Thanks. I have in my

iPhone App :show direction using Map

我们两清 提交于 2019-12-06 16:03:21
in My iPhone App How Can I show directions from current location to End Point? is there any built in component or facility available on iphone which can show maps and direction using GPS and built in compass? If you mean taking the user to the maps application based on two points, then you can do it like this: Create an NSURL that looks like this: NSURL *URL = [NSURL URLWithString:@"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f"]; You plug in your starting address and destination (in lat. and long.) appropriately. Tell your application to open the URL [[UIApplication sharedApplication]

iPhone GPS Accuracy - Reading Changes eventhough Device is stationary

自闭症网瘾萝莉.ら 提交于 2019-12-06 15:54:03
I am working on an app that is meant to calculate the distance traveled from starting point to end. i have done all things to get the changing coordinates and measure the distance between this co-ordinates. Now the real problem is even though if I keep my iPhone stationary after few seconds the GPS readings shows deviation and CLLocationDistance tells me that I had moved few 100 meters whereas I haven't moved a bit also. Is there anything I can do increase the precision of my app ?? Thanks in advance. The GPS on the iPhone works in away to preserve battery. The first set of coordinates will be

Pass objects to IntentService from activity

泪湿孤枕 提交于 2019-12-06 15:27:27
问题 To save battery in my app I decided to use the "new" Fused locations. However I need to pass some parameters into the service which receives GPS updates. The way It's done below would work ( putExtras(...) ), but I would need to make a lot of classes Serializable/Parseable, which would be a pain. I have searched around and found some other way using Binder, but can't figure out how to get it to work. Is using Binder the only way or is there another? If anything is unclear, please tell. Thank