gps

How do I programmatically find direction on a blackberry?

情到浓时终转凉″ 提交于 2020-01-14 18:56:34
问题 How do I programmatically find direction on a blackberry using GPS? 回答1: With GPS, the minimum resolution is aroud 3 meters. If you take consecutive GPS readings and look for significant changes in a given direction, it will give you a rough estimate of the direction of travel, and thus a probable direction the person is facing. This is not nearly as good as having a magnetic compass, which none of the Blackberries (Blackberrys?) on the market currently have. Some GPS systems have two GPS

Finding the cartesian coordinates of another smartphone?

倖福魔咒の 提交于 2020-01-14 10:28:33
问题 Considering I have two smartphones, A and B. If I am holding smartphone A, is there a way to determine the location of B in relation to myself? So if we had the situation of this image: : it would tell me B is at position (2, 1). Inventive methods like using the strength of wifi signals to get position are more then welcomed. Could I also determine if there is a wall between the two phones? 回答1: As far as I understand, both Bluetooth and Wi-Fi signals move in a radial wave in all directions -

Total distance calculation from LatLng List

主宰稳场 提交于 2020-01-14 10:26:07
问题 Im using dart/flutter and the 'package:latlong/latlong.dart' to parse a GPX file into a list of LatLng objects. That is working fine, but the next step is to find the total distance of the route. The question here is how can I get the total distance from a list of LatLng objects in Dart? I have used Haversine formula before in Java, but not sure the best way to implement it using Dart. Any help of suggestion would be greatly appreciated. Edit Below is an attempt to get total distance based on

Android GPS get driving car speed

≡放荡痞女 提交于 2020-01-14 05:32:07
问题 How do my android cellphone get the a driving car speed from GPS? Can you give me an example which it can get car location from GPS and get speed? Any advice is a help. Thank you very much. 回答1: The location has an attribute speed which you get by getSpeed() method. The GPS receiver chip determines speed NOT by distance and time relation. It uses the Doppler Shift Effect, which gives more precise speed. The higher the speed, the more acurate it is. Under 10km/h it does not work well. 回答2: //

draw lines between GPS coordinates

风流意气都作罢 提交于 2020-01-14 05:29:08
问题 I want to track user's positions using GPS and draw lines between visited GPS points. My code draw one time, then it doesn't draw public class Test extends Activity { float lat1, lon1 = 0; float lat0, lon0 = 0; private LocationManager locManager; private LocationListener locListener; private MapController mc; private MapView mapView; private MyOverlay myoverlay; private Projection projection; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView

Using Swift, how can I determine if a coordinates ordered pair (x,y) is within the bounds of n ordered pairs?

橙三吉。 提交于 2020-01-14 04:41:07
问题 Is there a math function of some kind in Swift (or maybe multiple functions that work together), where I can create sets of ordered pair coordinates, and then pass in a single ordered pair coordinate to get a bool true/false of whether it's within the bounds of the set? I'm not the greatest at math, so I'm hoping someone who is (and understands how to solve this problem in Swift) can help me out here. Example data: I have a coordinate where someone is located in lat-long. Let's say (28

Incorrect GPS location reported by Google maps in Genymotion

半城伤御伤魂 提交于 2020-01-14 04:41:06
问题 I'm using the Genymotion emulator to test my android application that needs location with GPS. When I launch the Google Maps application, it gives me an incorrect location. Anyone have any idea about that? 回答1: There is several solutions for your problem: You can choose the GPS position of a Genymotion emulator thanks to the GPS widget on the right side of the screen. You can also do it by shell commmand, look at the documentation here Or, if you have a pro license, you can do it by the Java

isProviderEnabled(LocationManager.GPS_PROVIDER) always returns false in android 2.3

那年仲夏 提交于 2020-01-14 03:56:23
问题 I am trying to redirect the user to Location Settings Screen using an Alert Dialog to so that he can enable the GPS, But after I enable the Use Wireless Network checkbox on Api 2.3 and return to previous Activity its again showing me the Alert Dialog for settings screen. because this line : isGPSEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); is always returning false. I am using below code to redirect to Locations Setting. Intent im=new Intent(Settings.ACTION

different behaviour for current location latitude and longitude in iOS7 to IOS8

两盒软妹~` 提交于 2020-01-13 20:30:07
问题 Using xamarin for current location currentLocation example I used the above Link for getting current location latitude and longitude. In IOS 7 before upgrade to IOS 8 Its shows my current location latitude and longitude on both simulator and device.(Its looks strange for me in simulator for getting current location latitude and longitude). After upgrade to iOS 8 and run same code it give In simulator:(Turn on wifi no sim card location service App always.) Result: latitude = 37.785834.

Transforming GPS coordinates for OpenLayers

纵饮孤独 提交于 2020-01-13 19:29:30
问题 I am building a project in JavaScript that uses OpenLayers with an OpenStreetMap layer. I have the coordinates "48.3185005, 14.2853003" (the coordinated of Linz, Austria) which I get from either navigator.geolocation.getCurrentPosition() or the Google Maps Geocoding API. Now I want to show this point on the map. Which transformations are necessary for the map to display the correct location and how do I do these transformations with OpenLayers? At the moment, I am always getting some point