gps

Tracking a car using Accelerometer and Gyroscope when GPS signal is low

匆匆过客 提交于 2019-12-10 21:56:38
问题 We are planning to write a software that would track a Car's GPS position, GPS signal strength, Accelerometer (X, Y, Z) and Gyroscope(X, Y, Z) for every 5 seconds or so. And send the data up to a server for post processing. The server would determine what are roads that are covered car. So this is not a real time processing. It can happen in the backend (over the night as batch process) When the GPS signal goes down, say for 30 seconds. The post processing should guess the lat and lon using

Google Play Services or Android Location Services

只谈情不闲聊 提交于 2019-12-10 21:26:42
问题 I am wanting to implement location based functionality in my app. I have been reading a bit and I find my self a bit confused. When googling for tutorial almost every result comes back with an example using Android Location API. However when reading the android developer guidelines they state the following: The Google Play services location APIs are preferred over the Android framework location APIs (android.location) as a way of adding location awareness to your app. If you are currently

How to convert longitude and latitude value to address in windows phone? [duplicate]

烂漫一生 提交于 2019-12-10 21:09:36
问题 This question already has an answer here : Windows Phone ReverseGeocoding to get Address from Lat and Long (1 answer) Closed 5 years ago . I get the latitude and longitude value using void _watcher_PositionChanged(object sender, GeoPositionChangedEventArgs<GeoCoordinate> e) { latitude = e.Position.Location.Latitude; longitude = e.Position.Location.Longitude; MessageBox.Show("Latitude & Longitude:" + latitude + " " + longitude); } Result like: Latitude & Longitude: 12.56 77.34 Now i want to

Can Google Maps plot points based on Hours Minutes Seconds

孤街醉人 提交于 2019-12-10 21:07:24
问题 I'm trying to plot out GPS data that is given to me in Hour Minute Second degree format. Will GLatLng take it in this form or do I need to convert it first. Having a hard time finding anything on the internet about this. If it can take it in this format an example would be much appreciated. 回答1: As far as I know it does not accept that format, but its really easy to convert it, just do the math: var = hour+(((minute*60)+(second))/3600); 来源: https://stackoverflow.com/questions/1751965/can

LatLng return 0,0

青春壹個敷衍的年華 提交于 2019-12-10 20:25:53
问题 I am trying to create an app that shows my current location I have all the permisson neccessary, I have another class name GPS tracker to get my gps locations Heres my code : GPSTracker gpsTracker = new GPSTracker(this); LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, this); map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap(); map.setMapType(GoogleMap.MAP_TYPE_NORMAL

CLLocation altitude property validity in flight

风格不统一 提交于 2019-12-10 20:05:33
问题 I understand the concept of negative for below sea levels and positive for above + there is vertical accuracy to check the sanity of this value. I am interested in GPS data in a flight. What could be the max or approx max value of altitude so that I can differentiate Flight from road travel. I understand I can query the speed but speed itself won't solve the purpose. 回答1: The proper way to determine flight from GPS altitude is to lookup the ground elevation of the current location (latitude

Unable to get GPS Location with Common Code

拈花ヽ惹草 提交于 2019-12-10 19:16:05
问题 I have code to get location, which I believe must be working but it doesn't at all: Manifest : <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> Java : LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);

Programmatically turn on/off GPS on Android [duplicate]

…衆ロ難τιáo~ 提交于 2019-12-10 18:20:40
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Enable GPS programatically like Tasker Is it possible to programmatically turn on/off gps on android? It is mentioned on this SO post: How can I enable or disable the GPS programmatically on Android? that it cannot be done without the user consent. 回答1: No it is not possible. The closest you can get is firing an Intent that shows the GPS settings to the user. Please follow this guide: Guide for GPS intent

ublox GPS模块不带惯导功能在开机启动有时搜不到星的解决办法

 ̄綄美尐妖づ 提交于 2019-12-10 17:24:19
背景: 公司开发的产品因为硬件不给力导致有些机器在刚开机(重新冷启动)之后,明显在空旷的地方都提示很长时间搜不到星的问题。 由于产品开发周期的问题,只能使用其它补救方案,目前由ublox模组厂家提供解决方案,开机阶段定位搜星不到时增加AGPS定位功能。 方法如下: 在GPS的Hardware层添加以下代码: 增加AGPS功能: t7\android\hardware\aw\gps\gps.c //static GpsState _gps_state[1]; //static GpsState *gps_state = _gps_state; //static int sleep_lock = 1; //Changed by Tommy 0; //static int lastcmd = 0; //static int bGetFormalNMEA = 1; //static int started = 0; //static int continue_thread = 1; //static int bOrionShutdown = 0; #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #define CAS

How do I continuously read and parse high speed SerialPort data

与世无争的帅哥 提交于 2019-12-10 16:56:51
问题 I am trying to write C# code that takes serialport data from a high speed GPS device and parse the data to grab coordinates. The problem with this compared to other serial GPS devices is that it spits out 5-6 lines of data every 100 milliseconds instead of the same every second. So basically, every 0.1 seconds, I get 5 or 6 lines of data burst, which will last continuously as long as the device is turned on. When I tried it on a simulated standard-speed GPS device, it works just fine. This is