gps

Getting my current position from my phone with script in Google spreadsheet

心不动则不痛 提交于 2021-01-29 08:42:56
问题 Is there a way to get my current position (latitudes and longitudes, preferably in decimal form) from my phone's GPS data with a Google Apps Script? Also, is it possible to turn GPS on and off or at least detect if it's on or off? Here's what I try to do: I go to places with my electric moped, and at every place I enter some data in a spreadsheet, such as date, distance since last position, which battery I'm using and more. One of the columns is my position. I currently enter it manually, but

Xamarin Forms: How to check if GPS is on or off in Xamarin ios app?

不问归期 提交于 2021-01-29 08:12:05
问题 Whenever I am opening my app I need to check the GPS is on or off. If the GPS is off, I need to redirect the user to the location settings page. I have done the android part using the dependency service like below. ILocSettings public interface ILocSettings { void OpenSettings(); bool isGpsAvailable(); } Android implementation [assembly: Dependency(typeof(LocationShare))] namespace Projectname.Droid.Services { public class LocationShare : ILocSettings { public bool isGpsAvailable() { bool

how to change gps update time in ios

谁说胖子不能爱 提交于 2021-01-29 06:02:58
问题 I'm looking for a way to get a background location update every n minutes in my iOS application.. now i am getting update in every second.. can i change one second to three or four second or every minute... Here is my code: - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { if([self.delegate conformsToProtocol:@protocol(GPSLocationDelegate)]) { // Check if the class assigning itself as the delegate

My BroadcastReceiver is called two times when turning on/off wifi or gps?

大憨熊 提交于 2021-01-28 05:11:54
问题 I have googled many time to find the solution but It didn't work. struggeld with this for many days ,please help me if you faced this problem and solved it. when I turn on or off wifi or Gps the Receiver triggers two time although sometimes once but if it triggers two time it would corrupt my plans for the app. thx in advance ... inside manifest.xml : <receiver android:name=".MyBroadcastReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <category android

Android convert Arabic number to English Number

对着背影说爱祢 提交于 2021-01-21 08:24:52
问题 I get the following error from the gps: Fatal Exception: java.lang.NumberFormatException Invalid double: "-٣٣٫٩٣٨٧٤" Now this is from a error that I got from a user via Fabric. It looks like arabic so I'm guessing it only happens if you have the language set to that, or your sim card? Is it possible to force the gps to send characters in the 0-9 range? Or can I somehow fix this? 回答1: Try this: String number = arabicToDecimal("۴۲"); // number = 42; private static final String arabic = "\u06f0

Android convert Arabic number to English Number

人盡茶涼 提交于 2021-01-21 08:22:12
问题 I get the following error from the gps: Fatal Exception: java.lang.NumberFormatException Invalid double: "-٣٣٫٩٣٨٧٤" Now this is from a error that I got from a user via Fabric. It looks like arabic so I'm guessing it only happens if you have the language set to that, or your sim card? Is it possible to force the gps to send characters in the 0-9 range? Or can I somehow fix this? 回答1: Try this: String number = arabicToDecimal("۴۲"); // number = 42; private static final String arabic = "\u06f0

Is there a way to programmatically determine the optimal Bing Maps Zoom Level based on an array of GPS Coordinates?

天涯浪子 提交于 2021-01-07 02:40:55
问题 When programmatically adding an array of GPS Coordinates to a Bing Map, I want to set the Zoom level to the optimal - to show every pushpin/location, but "just barely." I imagine a way to do this would be to identify the furthest points in the cardinal directions found within the array of coordinates, and then calculate how many miles you need to display both east-to-west and north-to-south. For example, let's say the furthest north and furthest south locations are determined to be forty

Is there a way to programmatically determine the optimal Bing Maps Zoom Level based on an array of GPS Coordinates?

≡放荡痞女 提交于 2021-01-07 02:40:21
问题 When programmatically adding an array of GPS Coordinates to a Bing Map, I want to set the Zoom level to the optimal - to show every pushpin/location, but "just barely." I imagine a way to do this would be to identify the furthest points in the cardinal directions found within the array of coordinates, and then calculate how many miles you need to display both east-to-west and north-to-south. For example, let's say the furthest north and furthest south locations are determined to be forty

How can I calculate the DOP values for a set of GPS satellites in Python 2.7.2?

回眸只為那壹抹淺笑 提交于 2021-01-04 09:25:15
问题 I'm trying to calculate the DOP values for a set of GPS satellites in Python 2.7.2 using numpy 1.9.3. I found a guide on how to do this but I'm having trouble translating it to python. Here's what I tried so far: import numpy as np # First I defined 3 variables for each satellite as described in the guide. sat_1_1 = np.sin(np.deg2rad(136)) * np.cos(np.deg2rad(14)) sat_1_2 = np.cos(np.deg2rad(136)) * np.cos(np.deg2rad(14)) sat_1_3 = np.sin(np.deg2rad(14)) sat_2_1 = np.sin(np.deg2rad(329)) * np

Getting GPS location updates while app in the background

点点圈 提交于 2020-12-15 06:22:39
问题 I have an android application that tracks customer location and send it's location each 10 seconds, however, in android O, location updates will be gotten few times each hour, as said in the documentation about limitation of gps location update in android O. anyway, to overcome this problem, I used a foreground service with notification, so that the gps location update keep updating in fusedLocation. After that, I faced another problem that speed and direction in fusedLocation are zero,