gps

GPS location on iOS and Android

一世执手 提交于 2019-12-01 14:22:32
I have limited experience programming Android apps and none at all for iOS. Part of a future project of mine is to make my app be able to record the current location using GPS possibly on both Android and iOS. Can the GPS coordinates be taken in "Universal Transverse Mercator" format like in Google Earth for both platforms? If not, is there some way to calculate the coordinates to this format? EDIT: Any chance anyone would know what format the functions in their respective APIs return? The API will provide a location object (class Location for Android and CLLocation for iOS). Both API have

Show my current location in the Google Map

◇◆丶佛笑我妖孽 提交于 2019-12-01 14:12:53
Finally I succeed to display the map,Now,I want to show my current location, I tried by using these code but it didn't work when I clicked the my location button in the top right corner. AndroidManifest.xml <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name=

Is there a way to determine the actual time and date in iOS (not the time of the device)

自古美人都是妖i 提交于 2019-12-01 14:07:05
问题 In iOS, I need to know the actual time (UTC), not the time of the device. In other words, it should not be possible for the user to tamper with the time or date. Anything that requires a network connection is not good (so accessing a time server is not an option). AFAIK, there are 2 theoretical ways of achieving this: Use the timestamp from the GPS satellite signal Get the current time from the carrier Problem is that this information is not exposed by any API in iOS. Is there another way?

How to get street name from coordinates?

与世无争的帅哥 提交于 2019-12-01 13:44:10
I have the longitude and latitude into two separate EditText I want that when I press a button the street name appears in another EditText. I tried with the Public Address getAddressForLocation method, but I have not gotten it to work.. Code public Address getAddressForLocation(Context context, Location location) throws IOException { if (location == null) { return null; } double latitude = location.getLatitude(); double longitude = location.getLongitude(); int maxResults = 1; Geocoder gc = new Geocoder(context, Locale.getDefault()); List<Address> addresses = gc.getFromLocation(latitude,

电力同步时钟系统在陕西延长石油安源化工有限公司应用案例

不羁岁月 提交于 2019-12-01 13:23:36
电力同步时钟系统在陕西延长石油安源化工有限公司应用案例 热烈庆祝我公司的电力时钟系统在陕西延长石油安源化工有限公司成功投运,给整个化工厂进行全网的时间进行统一,为该化工厂的氢催化剂车间、氧化锌脱硫剂车间、脱氯剂车间、转化催化剂车间、变换催化剂车间等需要准确时间的地方提供准确、有效的时间信息。 陕西延长石油安源化工有限公司 担 负着延长集团矿产资源开发建设的重任,按照延长集团的授权和总体战略规划, 陕西延长石油安源化工有限公司 主要负责矿产资源勘探开发和建设运营,煤化工项目投资运营,电力项目建设运营及新电产业发展 。 而这些项目的运营都离不开一个准确的时间,这时 电力时钟就可以提供标准的时间信息。 目前化工厂的 电力系统同步时钟用的 对时信号大多是采用美国的 GPS作为时间源,安全系数较低。GPS卫星原为美国军方所有,开放给民用市场后,采取免费服务策略,不向终端用户索取使用费用,但不对服务质量做任何保障,即定位精度和授时精度有任何保证。同时美国为保证自身及其盟国利益,对其他国家采用“选择可用性”政策,降低了定位精度和授时精度,因此GPS卫星授时具有一定的不安全性、不可靠性。 SYN4505型标准同步时钟 电力系统时钟 采用北斗卫星授时具有以下特点和优点: 1、 安全性高: 北斗系统由中国自主控制, GPS系统由美国军方控制,北斗系统的战略安全性高于GPS系统,适合关键部门应用。 2、

Programmatically turn ON GPS in android [duplicate]

落爺英雄遲暮 提交于 2019-12-01 13:19:42
问题 This question already has answers here : Android 4.1.2 How to turn off GPS programmatically (5 answers) Closed 5 years ago . Possible duplicates, How to enable/disable gps and mobile data in android programmatically? I have been seeing people telling that they are able to turn ON the GPS in android programatically. But I'm using the same code and not able to do that. It is just showing that "Searching for GPS .." but not actually doing it. Here is the code I'm using, //Enable GPS Intent

How to get street name from coordinates?

六眼飞鱼酱① 提交于 2019-12-01 13:13:55
问题 I have the longitude and latitude into two separate EditText I want that when I press a button the street name appears in another EditText. I tried with the Public Address getAddressForLocation method, but I have not gotten it to work.. Code public Address getAddressForLocation(Context context, Location location) throws IOException { if (location == null) { return null; } double latitude = location.getLatitude(); double longitude = location.getLongitude(); int maxResults = 1; Geocoder gc =

How to track distance via GPS on Android?

那年仲夏 提交于 2019-12-01 12:13:12
How would I go about tracking the distance a user travels? I don't necessarily care about storing waypoints, although that may be necessary to calculate distance anyway. So far, I am creating a LocationManager and regsitering an onLocationChanged listener, and then calculating the raw distance between two points when the listener fires. The problem here is that if I leave the app sit still on a desk for 10, 15 minutes, it will say I have traveled .5 miles. How should I go about checking for accuracy and determining which points to use? Or, even better - is there an SDK or .jar I can just

Enable GPS in a device owner app

孤者浪人 提交于 2019-12-01 12:04:10
According API documentation a device owner app can modify a few "secure settings" and specially the LOCATION_MODE with the following call : devicePolicyManager.setSecureSetting (ComponentName admin, String setting, String value) Called by profile or device owners to update Settings.Secure settings [...] A device owner can additionally update the following settings: LOCATION_MODE According my understanding the value of LOCATION_MODE is an int (resp. 0 for location disabled, 1 for GPS only, 2 for battery saving mode and 3 for high accuracy). My problem is the type of the String value parameter.

Send GPS location to iOS device via bluetooch

烈酒焚心 提交于 2019-12-01 11:48:31
We are looking for a way to send GPS location to iPhone or iPad through bluetooth. The benefits of doing so is that an external GPS device could produce more accurate location than the build-in GPS device in iOS. For our testing purposes, it would also be nice to be able to produce GPS manually by QAs. We are pretty sure this is possible but we don't know how. We heard about this kind of external GPS device from one of our customers. Simple googling we found this one this device , which does exactly what we are looking for. We know that it is possible to generate fake GPS location using GPX