gps

GPS position when mobile app is in background (with ionicframework)

随声附和 提交于 2019-12-03 13:46:56
问题 I need to realize an app that store user journey (path) when he moves from A to B. Now, I know that ionicframework can use GPS, but what happen when my APP go to background ? How can my app continue to store user position ? Is this possible ? Are there plugins (not $600+ please) that I can use ? 回答1: I just finished writing a new cordova background geolocation plugin for ios and android, its free and simple! try it out: https://github.com/pmwisdom/cordova-background-geolocation-services Ionic

iOS simulator and gps

南楼画角 提交于 2019-12-03 13:31:05
How do I simulate GPS movement on iOS simulator? I am developing an app that uses gps an I need to test it while the user location is changing.. How can I do that? thank you in advance.. From the Debug menu of the iOS Simulator, check the Location menu: It provides you with several options pertaining to changing the location of the simulated device. 来源: https://stackoverflow.com/questions/12641817/ios-simulator-and-gps

how to get satellite name or number when we are getting location through GPS in Android?

南楼画角 提交于 2019-12-03 13:25:33
问题 I am new in android, I am getting location through gps, I am also getting satellite number in our code but I want to get specific satellite name or number which is used to get the location. I have google so much but not getting proper solution regarding this. My Question is:- 1. It is possible to get a particular satellite name or number ? if yes please help me how to find it ? Thanks in advance 回答1: locationManager.getGpsStatus(null).getSatellites() (The caller may either pass in a GpsStatus

python: elegant way of finding the GPS coordinates of a circle around a certain GPS location

烈酒焚心 提交于 2019-12-03 13:23:58
I have a set of GPS coordinates in decimal notation, and I'm looking for a way to find the coordinates in a circle with variable radius around each location. Here is an example of what I need. It is a circle with 1km radius around the coordinate 47,11 . What I need is the algorithm for finding the coordinates of the circle , so I can use it in my kml file using a polygon. Ideally for python. Use the formula for "Destination point given distance and bearing from start point" here: http://www.movable-type.co.uk/scripts/latlong.html with your centre point as start point, your radius as distance,

C# - LINQ - shortest distance by GPS latitude and longitude

人盡茶涼 提交于 2019-12-03 12:59:34
I have database and in it I have class hotel with gps coordinates. I want to get closest places to coordinates which I choose. I think It should look like this (I found many example codes here and like this one): var coord = new GeoCoordinate(latitude, longitude); var nearest = (from h in db.hotels let geo = new GeoCoordinate(h.gps.lat, h.gps.lng) orderby geo.GetDistanceTo(coord) select h).Take(10); The problem is that I have this error when I tried to search for something: Only parameterless constructors and initializers are supported in LINQ to Entities I tried to google it and I found that

How can I evaluate the GPS signal strength? (iPhone)

廉价感情. 提交于 2019-12-03 12:59:24
问题 I need a way of categorising the strength of the GPS signal. So far I have come across the horizontalAccuracy property of CLLocation (Class Reference). To be more specific I need to create something like the following; the issue I'm having is filling in the if statements. if (someLocation.horizontalAccuracy ...) { // No Signal } else if (someLocation.horizontalAccuracy ...) { // Poor Signal } else if (someLocation.horizontalAccuracy ...) { // Average Signal } else if (someLocation

Android GPS on or off state

点点圈 提交于 2019-12-03 12:59:17
Is there any way to check if the Android GPS is on or off without any permission, just the state I don't need to toggle it. Thanks No. Checking GPS Status on Android requires android.permission.ACCESS_FINE_LOCATION The code to check the status of GPS LocationManager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE ); boolean statusOfGPS = manager.isProviderEnabled(LocationManager.GPS_PROVIDER); steps - Create services running in backgroud You require following permission in Manifest file too - android.permission.ACCESS_FINE_LOCATION write code final LocationManager manager

How do you get the country/state/region/city/state/zip/postal from GPS coordinates?

女生的网名这么多〃 提交于 2019-12-03 12:32:13
问题 I have GPS coordinates on all of my photos. I want to include tags/IPTC data for the city, state, zip, etc.. However all I have is the GPS coordinates. How can I take these and get meaningful info in an automated fashion (I have thousands upon thousands of photos, so typing each one into google maps would not work). 回答1: You can do reverse geocoding with Google Maps API using the following HTTP request: Simple CSV: http://maps.google.com/maps/geo?q=40.756041,-73.986939&output=csv&sensor=false

How can I check if GPS is enabled before I try to use it

爱⌒轻易说出口 提交于 2019-12-03 12:30:10
I have the following code and it's not good because sometimes GPS takes very long How can I do the following: Check if GPS is enabled Use GPS if it is enabled otherwise use the network provider. If GPS takes more than 30 seconds, use network. I can do this with my own logic using a time or Thread.sleep but I think there might be a more stabndard way // Acquire a reference to the system Location Manager LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); // Define a listener that responds to location updates LocationListener locationListener =

How does the iPhone learn new WiFi locations in terms of using them for location estimates

。_饼干妹妹 提交于 2019-12-03 12:03:54
问题 I know the iPhone can and does use WiFi proximity to get approximate location. This obviously only can occur when some database in the sky knows the approximate location of that WiFi hotspot. My question is how do hotspots get into that db? Is it automatically added whenever the iPhone has a reasonably accurate GPS position and detects the WiFi or is there some manual or programatic way of adding hotspots? 回答1: Apple uses their own database since iOS 3.2 (prior to that they used Skyhook