gps

Get precise Android GPS-Location in Python

守給你的承諾、 提交于 2019-12-05 02:11:24
问题 I try to obtain the GPS-Location of my Android Phone in Python (using QPython3 app). This kind of works, but it seems there are several LocationProviders in Android: gps: pure gps location, slow, energy consuming, but very accurate, and exactly what I need. network: mix of gps and wifi/cell locating, faster, but less accurate passive: like above but completely without using gps Problem: When I run my script (below) I only get my location provided by "network" wich is not accurate enough. But

How can I obtain the current GPS location?

醉酒当歌 提交于 2019-12-05 01:24:08
问题 I am about to build an app in Android that will act as a clock-in card for employees on the road. At the start of a job the user will click a button that will record the GPS location and current time (thus verifying that he is where he should be at a given time) and again at the end of the job he records the time and GPS location. SO I reckon this will be easy enough, except that I can't find a way of pulling current location data. The nearest I can find is onLocationChanged which implies

Draw a map with gps markers and save this image to file

一笑奈何 提交于 2019-12-05 01:11:26
问题 I have some GPS position recordings, which I want to draw into a map (e.g. OpenStreetMap) and save this as an image file. I'm using python. I've found osm-gps-map as a candidate library to do the visualization, but apparantly the API lacks some functionality to satisfy all of my needs. What I need is a library that does: draw stuff into a map (e.g. an OSM-based map), i.e. a list of GPS positions. automatically adjust view (scale/position) to fit in all drawn positions save this view to an

MyLocationOverlay disableMyLocation() not seeming to work

坚强是说给别人听的谎言 提交于 2019-12-05 01:00:37
问题 Just wasted 3 hours trying to figure out why the GPS icon is still showing up in the notification bar when my map activity is paused. I've narrowed it down to having to do with the MyLocationOverlay object I'm using (I also have a LocationListener and a GpsStatus.Listener). @Override protected void onPause() { super.onPause(); manager.removeUpdates(locListener); manager.removeGpsStatusListener(statListener); myLocOverlay.disableMyLocation(); //!doesn't seem to work myLocOverlay.disableCompass

Android GPS data obtaining and filtering, how it improve location info

China☆狼群 提交于 2019-12-05 00:03:01
问题 I'm starting to deal with gps data on Android 2.1 (HTC Hero) and look around on topics about Kalman filter and least squares fit to location data. While receiving and logging GPS data using phone I've found small dispersion if staying on position, but coordinates are pretty accurate when moving. Here comes the question: - Do getLatitude() and getLongitude() functions provide "raw" coordinates, or data was pre-filtered by android (while position is fixed or during movement)? I'm curious if

WGS84 Geoid Height Altitude Offset for external GPS data on IOS

孤街浪徒 提交于 2019-12-04 23:56:47
问题 For an application I'm writing we are interfacing IOS devices with an external sensor which outputs GPS data over a local wifi network. This data comes across in a "raw" format with respect to altitude. In general all GPS altitude needs to have a correction factor applied related to the WGS84 geoid height based on the current location. For example, in the following Geo Control Point (http://www.ngs.noaa.gov/cgi-bin/ds_mark.prl?PidBox=HV9830) which resides at Lat 38 56 36.77159 and a Lon 077

Android - plotting gps coordinate on custom map

巧了我就是萌 提交于 2019-12-04 23:17:46
问题 I have an activity in my app where there are images I use as maps. If the image is "grid aligned" to google maps then when I use the top left and bottom right corners of the map I get from googlemaps online then I can turn the users gps into an x and y on screen. However if the map is not "grid aligned" and is at an angle than the values my math returns draws the users position off screen. Obviously I am missing the part on how to handle the angle of the map so if anyone could shed some light

Is there way to programmatically enable GPS on Android 2.1 & above?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 23:14:22
I have been seeing different posts that GPS cannot be enabled programmatically How do I find out if the GPS of an Android device is enabled But this app enables the GPS when it is disabled. Can anyone please help me out. Thanks, Prateek If the documentation said that it can't be set programmatically, I suggest you not to do so. There are many impacts why the documentation said that. And if someone was able to do that (enabling the GPS programmatically), it means he/she doing something that was undocumented. Activating GPS requires user's permission. If your application was able to activate the

geo tagging in android

假如想象 提交于 2019-12-04 23:05:57
问题 How to know whether the geo tagging is enabled or disabled in android camera setting through the code? We are attaching the geo tags to photos through code. We using Location Manager,Location Listener to get the latitude and longitude and save this coordinates to photo using Exif interface. ExifInterface exif = new ExifInterface(/sdcard/photo/photoname.jpg); exif.setAttribute(ExifInterface.TAG_GPS_LATITUDE,String.valueOf(latitudeValueInDecimal)); exif.setAttribute(ExifInterface.TAG_GPS

Pass objects to IntentService from activity

断了今生、忘了曾经 提交于 2019-12-04 22:48:59
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 you. public class LocationService extends IntentService { ... public LocationService(StartActivity