gps

Change minTime for GPS LocationListener dynamically

自作多情 提交于 2019-12-04 06:29:06
问题 The app that I'm writing uses the GPS location manager service requestLocationUpdates() but I would like to be able to change the min Time and min Distance parameters throughout the program. I initialize the location listener on creation but I can't figure out how to change these parameters or even find out if it's possible to do that. The main purpose for this would be to conserve battery life when the program doesn't need regular position updates. Thanks so much for your help! -Dom 回答1: I'm

Show GPS availability and Accuracy in Iphone SDK

穿精又带淫゛_ 提交于 2019-12-04 06:24:27
问题 How to program to show the GPS availability and Accuracy level in an iphone? and it has to wipe the previous lat, lon info in label. 回答1: There is a class in iOS sdk called CLLocationManager. Go though its documentation in the XCode or look for some sample example. http://mobileorchard.com/hello-there-a-corelocation-tutorial/ 回答2: CLLocationManager has a method locationServicesEnabled to check if the service is enabled or not [CLLocationManager locationServicesEnabled] 来源: https:/

Formula/algorithm to offset GPS coordinations

為{幸葍}努か 提交于 2019-12-04 06:24:18
问题 I have GPS coordinates provided as degrees latitude, longitude and would like to offset them by a distance and an angle. E.g.: What are the new coordinates if I offset 45.12345 , 7.34567 by 22km along bearing 104 degrees ? Thanks 回答1: For most applications one of these two formulas are sufficient: "Lat/lon given radial and distance" The second one is slower, but makes less problems in special situations (see docu on that page). Read the introduction on that page, and make sure that lat/lon

How to fetch the current Location in every 1 min of interval?

核能气质少年 提交于 2019-12-04 05:51:42
问题 I have implemented the Demo to show the current lat-long of the User. Now I am able to see the lat-long of the current Position. but I want to Set it to to be displayed in every 1 min of interval. The code is as below: public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); LocationListener

Kalman Filter for GPS android [closed]

泄露秘密 提交于 2019-12-04 03:56:33
To get a more accurate data from GPS, Kalman filter is being recommended. But I can't find any tutorial how to implement Kalman Filter for GPS, android. GPS Data are already heavily Kalman filtered. This is done inside the GPS receiver. Dont expect an accuracy gain in position (lat / lon) if you create your own kalman filter. Further you dont have the information that the internal GPS receiver had. It feeds its internal kalman filter 1000 time / per second, before it outputs one location. In your own post processing filter you might gain a smoother track (related to visualizing the positions).

Multi-point trilateration algorithm in Java

ε祈祈猫儿з 提交于 2019-12-04 03:55:52
I'm trying to implement a trilateration algorithm into my Android app to determine a user's indoor location. I'm using ultra-wideband beacons to get the distances to fixed points. I was able to adapt the method suggested in Trilateration Method Android Java as follows: public LatLng getLocationByTrilateration( LatLng location1, double distance1, LatLng location2, double distance2, LatLng location3, double distance3){ //DECLARE VARIABLES double[] P1 = new double[2]; double[] P2 = new double[2]; double[] P3 = new double[2]; double[] ex = new double[2]; double[] ey = new double[2]; double[] p3p1

Location accuracy defined - iOS

ε祈祈猫儿з 提交于 2019-12-04 03:17:06
What is the statistical intention, even if an approximation, of the returned "accuracy" or "uncertainty" on iOS? For instance Android documentation gives an interpretation of its returned accuracy figure as being approximately one standard deviation in this sense: We define accuracy as the radius of 68% confidence. In other words, if you draw a circle centered at this location's latitude and longitude, and with a radius equal to the accuracy, then there is a 68% probability that the true location is inside the circle. In statistical terms, it is assumed that location errors are random with a

GPS V.S. accelerometer to calculate distance

故事扮演 提交于 2019-12-04 03:13:22
I am trying to implement a fitness app that can keep track of the running speed and running distance in Android. It looks like I can either use GPS or Accelerometer to calculate these information. Since a runner may put his phone in hand, on the shoulder or in his pocket, my first intuition is to use GPS to get locations and calculate running speed and running distance. But recently someone telled me that I can also use Accelerometer also does that. My question is: In Android, which approach is better to calculate running speed and running distance, GPS or Accelerometer? I suspect that

GPS通讯 数据包解析

久未见 提交于 2019-12-03 23:52:11
全球时区的划分:   每个时区跨15°经度。以0°经线为界向东向西各划出7.5°经度,作为0时区。即0时区的经度范围是7.5°W——7.5°E。从7.5°E与7.5°W分别向东、向西每15°经度划分为一个时区,直到东11区和西11区。东11区最东部的经度是172.5°E,由172.5°E——180°之间就是东12区。西11区最西部的经度是172.5°W,由172.5°W——180°之间就是西12区。东、西12区各占经度7.5°,合成一个完整的时区,即全球总共划分为24个时区。东、西12区钟点相同,日期相差1天,因此180°称为理论上的国际日期变更线。   由于地球的自转运动,不同地区有不同的地方时间,为了解决时间混乱的问题,采取了划分时区的办法。每个时区中央经线所在地的地方时间就是这个时区共用的时间,称为区时。在实际应用中各国不完全按照区时来定时间,许多国家制定一个法定时,作为该国统一使用的时间,例如我国使用120°E的地方时间,称为北京时间。   GPS 上电后,每隔一定的时间就会返回一定格式的数据,数据格式为: $信息类型,x,x,x,x,x,x,x,x,x,x,x,x,x每行开头的字符都是'$',接着是信息类型,后面是数据,以逗号分隔开。 一行完整的数据如下: $GPRMC,080655.00,A,4546.40891,N,12639.65641,E,1.045,328.42

Is it possible to run a task periodically in Background - iOS 4

非 Y 不嫁゛ 提交于 2019-12-03 23:30:08
问题 I want to poll the location from GPS in the background. So we used a NSTimer and performed periodic checks in the timer tick. In other words, can we schedule NSTimer while the app is in Background? Thanks in advance 回答1: You can't periodically execute arbitrary code, but you can get pinged on significant location changes via startMonitoringSignificantLocationChanges in CLLocationManager. 来源: https://stackoverflow.com/questions/3574248/is-it-possible-to-run-a-task-periodically-in-background