gps

How to programmatically turn GPS on and off in Windows Phone 7

馋奶兔 提交于 2019-12-11 12:14:58
问题 So far, to turn on and off the GPS device in Wp7, I do it in Settings Menu. Wonder If this can be done in code? Thanks ---------- Update Sorry for the confusion. Instead of turning GPS on and off, What I really mean is how to turn on and off the LOCATION in the Settings Menu of Wp7. 回答1: You can get the GPS data but you are not able to turn the sensor on or off via your application. The most you can do in your application is start the geolocation data acquisition and stop it. 回答2: Windows

How to better handle GPS location and android

时光毁灭记忆、已成空白 提交于 2019-12-11 12:09:01
问题 I have a fragment with a listview in it, that retrieves the users location, then updates the list view based on the users location. The problem with my code, is that it seems to grab the location update the list, then keep updating. And reloading the list, almost to the point of annoyance. Here is my code: public class FindBrewery extends Fragment implements LocationListener { private TextView latituteField; private TextView longitudeField; LocationManager locationManager; private String

Select items within range using MySQL spatial extensions?

半世苍凉 提交于 2019-12-11 11:42:23
问题 I am completely new to MySQL spatial extensions, so please excuse my ignorance on the topic. The scenario: 1) I collect a user's location via latitude and longitude. I store that location in a MySQL table. 2) I then display any other users within a range of that user. The range would be small - let's say 1000 ft. Question: What is the best practice for storing the location points? What is the best practice for querying and selecting the points nearest that user? 回答1: Use the POINT Spatial

Google maps api v3 polylines snap to nearest street

。_饼干妹妹 提交于 2019-12-11 11:40:58
问题 Assuming i have a list of positions from a GPS unit loaded into a database. Now i would like Google maps to show these positions, which works just out of the box like this new google.maps.LatLng(57.046085209585726, 9.917740747332573), new google.maps.LatLng(57.04606626648456, 9.918211475014687), new google.maps.LatLng(57.04656251706183, 9.917992874979973), new google.maps.LatLng(57.04649009741843, 9.918401995673776), new google.maps.LatLng(57.04628427978605, 9.91844767704606), new google.maps

Getting Current Location Longitude and Latitude without Change my Position

╄→гoц情女王★ 提交于 2019-12-11 11:40:33
问题 I can find the current location latitude and longitude.But These data are not shown before change my current position.I want to get current location longitude and latitude without change my position. package com.example.gps; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android

Android: Losing GPS signal strength on some phones when I start up the Camera and SurfaceView

风流意气都作罢 提交于 2019-12-11 11:29:07
问题 I am working on an app that takes GPS encoded pictures. I am able to get about 15 - 20 meters accuracy GPS signal strength when I am not running the camera, and have at least 3 satellites in range, sometimes 5 - 7 satellites. However, when I start up an activity that both displays the SurfaceView with the Camera hooked up to it AND the GPS code, my accuracy goes way down (> 100 meters), but only on some phones. Phones that it does not work on: Droid Incredible 2 HTC Wildfire HTC Inspire

GPS accuracy of Android Emulator

人走茶凉 提交于 2019-12-11 11:24:02
问题 I am developing a website which used W3C GeoLocation API to obtain users' position. I try to run the website in Android Emulator and use DDMS / geo fix to send the coordinate to the device. However the coordinate received is inaccurate. For example, (22.377127, 114.095535) will become (22.370335, 114.08523353). I try to run some Android GPS example from Internet, and the results is just the same. I can certainly say that this is not my program bug. From my observation, it seems like some

How to get leap seconds from gps epoch for current date in python

自古美人都是妖i 提交于 2019-12-11 10:33:53
问题 As I understand for now in python there is no function to get leap seconds from gps epoch for current date. The appropriate patch under investigation/development: leap seconds path in datetime Could you advice the best way how to get leap seconds? I found that solution: def getLeapSec(Tgps): daysFromGPSEpoch = timedelta(seconds=Tgps).days tableLeapSec = ([ [0, 542, 907, 1272, 2003, 2917, 3648, 4013, 4560, 4925, 5290, 5839, 6386, 6935, 9492, 10588, 11865, 12960], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9,

How to set location on start - Google Maps API V2

。_饼干妹妹 提交于 2019-12-11 10:20:15
问题 Hi currently when i start the application it shows the whole map of the world, when i press the gps button then it zooms into my current location. I want it that when the activity starts it already zooms into your current location. Here is the source code: public class MainActivity extends Activity { // Google Map private GoogleMap googleMap; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); try { //

Windows phone 8 gps / altitude problems

大憨熊 提交于 2019-12-11 10:02:32
问题 UPDATE: using the sample from here - http://code.msdn.microsoft.com/wpapps/Location-sample-f11aa4e7 and adding an altitude readout I get the same thing as my code. Poor accuracy is being off by 50ft. Going back and forth between 720 (correct) and 300 ft means something is wrong. I just can't see where... I'm starting to make a GPS tracking app for windows phone 8 but something is going haywire. In my app, (and in the sample location app) i get some readings that are correct and others that