gps

Kalman-filtered GPS data is still fluctuating a lot

岁酱吖の 提交于 2019-12-08 00:44:05
问题 He everyone! I'm writing an Android app that uses the devices GPS to calculate a vehicles driving speed. This is supposed to be accurate to about 1-2 km/h, and I'm doing it by looking at the distance between two GPS locations and dividing it by the time these locations are apart, pretty straightforward, and then doing this for the last three recorded coordinates and evening it out. I get the GPS data in a background service, that has a handler to it's own looper, so whenever I get a new

Pinpointing indoor location with android - not accurate enough

核能气质少年 提交于 2019-12-07 22:58:43
问题 I'm trying to find a solution for pinpointing indoors, specifically inside big crowded places, like malls for example. I tried building a simple app that tried to pinpoint the phone using only the Network service or Wifi networks. Usually when Wifi was on the accuracy got to 40-60 meters, and when the wifi was off and only the network service was used, the accuracy got to 600-1000 meters. Unfortunately that really is too inaccurate for my needs. I read that Google have successfully added an

How to add GPS latitude and longitude using Exiftool in mac (how to edit meta data in jpeg)

不羁的心 提交于 2019-12-07 22:55:17
问题 I have a bunch jpeg image that is obtained from FLIR camera. Along with that images I collected the GPS coordinates also. Now I'm trying to take the GPS latitude and longitude to the metadata of the image. I wrote a program in R programming language to find the GPS location of each image with respect to the time(when ever the GPS location time and the camera time matches, I took that coordinates). ie, for a particular image, I have GPSLatitude <- 19.33423 and GPSLongitude <- 72.090834 But now

getting distance between two points using google gps api with php

随声附和 提交于 2019-12-07 20:15:28
I found this link on Stack Overflow Google Maps - How to get the distance between two point in metre? which shows the following solution in regards to finding a km distance given two different latitude and longitude values: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&libraries=geometry"></script> var p1 = new google.maps.LatLng(45.463688, 9.18814); var p2 = new google.maps.LatLng(46.0438317, 9.75936230000002); alert(calcDistance(p1, p2)); //calculates distance between two points in km's function calcDistance(p1, p2){ return (google.maps.geometry

Fused location API gives highly inaccurate location after closing google maps

给你一囗甜甜゛ 提交于 2019-12-07 18:35:18
问题 Our application uses Google Fused location API to receive location updates every 3 minutes. The location request settings are as follows – Interval – 3min Fastest interval – 1 min Priority - PRIORITY_BALANCED_POWER_ACCURACY In a normal running scenario, the location updates are received properly and the location accuracy is pretty good (around 20-25 m). When the Maps application is opened, it received GPS location, and therefore our application also starts receiving location updates, which

Get current position with GPS AND WIFI

懵懂的女人 提交于 2019-12-07 17:58:30
问题 I'm currently using GPS only to get current location of the user to return certain results. As in Belgium, if you're inside, most of the time you can't get GPS-connection. So I want to get the current location with the wifi-connection. I've found this example: get the current location (gps/wifi) But I'm not sure which lines tell the device which connection to choose. I'm guessing it's this one: String provider = myLocationManager.getBestProvider(criteria,true); That I've to add to my code.

activate GPS programmatically

混江龙づ霸主 提交于 2019-12-07 17:28:14
问题 My application needs the GPS to be on, is there any way to check whether GPS is currently enabled or not and if not , then how to enable. I am using android 2.3 回答1: Android does not allow you to do that. The best thing you can do is checking if the GPS is enabled and if it's not, ask the user to activate it. Here you can see how to know if the GPS is enabled: How do I find out if the GPS of an Android device is enabled 回答2: You can do it this way..check it out private void turnGPSOn() {

How to add GPS metadata to TIFF in Java?

那年仲夏 提交于 2019-12-07 17:09:27
问题 I am attempting to add GPS data to a TIFF file I am creating in Java. I am using the JAI-ImageIO libraries, although if there is a better library for doing both GPS metadata and custom metadata, I am willing to look into it. I have attempted to add the GPS metadata to the nodes directly, but it seems to strip off the GPS IDF tag. I have attempted to add the GPS IFD to the TIFFIFD object (from the TIFFIMageMetadata object), but that doesn't seem to save the data properly. Basically, I am

Notify users when they reach a location

最后都变了- 提交于 2019-12-07 16:33:25
问题 In the application I'm working on, one of the features is to notify the user when they reach a location that they have set prior. The code below is in addProximityAlert in Activity: final Intent intent = new Intent(PROX_ALERT_INTENT); final PendingIntent pendingIntent = PendingIntent.getBroadcast( InfoActivity.this, 0, intent, PendingIntent.FLAG_ONE_SHOT); LocationManager locationManager = (LocationManager) this .getSystemService(Context.LOCATION_SERVICE); locationManager.addProximityAlert(18

4. 使用CLLocationManager获得设备当前经纬度信息

懵懂的女人 提交于 2019-12-07 15:19:28
4. 使用CLLocationManager获得设备当前经纬度信息 几乎所有的苹果设备都有GPS模块,通过GPS模块可以获得设备的当前位置信息,可以通过CLLocationManager和其代理类CLLocationManagerDelegate来获得启动和停止跟踪,并获得设备当前经的纬度信息。另外,还可以为设备进入某个特定区域做出提示。通过下面的程序,当用户点击按钮,开始跟踪设备,并通过UILabel实时显示当前设备的经纬度信息。实现步骤如下所示。 创建项目并为项目添加CoreLocation.framework框架。 在界面上添加UIButton和UILabel组件。 在.h中实现CLLocationManagerDelegate代理,声明CLLocationManager属性和UILabel属性,并声明UIButton的点击事件方法。 #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> @interface AmakerViewController : UIViewController<CLLocationManagerDelegate> - (IBAction)start:(id)sender; @property (strong, nonatomic) IBOutlet UILabel