gps

Follow user location on google maps

拥有回忆 提交于 2020-01-01 19:44:48
问题 I have google maps sdk on ios and enabled userlocation = yes. I want to get the user location via GPS when he moves. I could not find any method in document that returns me location updates as the user keeps moving. I want to keep my user in center of the screen by continuously then updating the camera using these location. Any points on this? There is a method didchangecameraposition which updates when i apply gestures on maps, but not when the gps gets updated. 回答1: You cannot do it totally

Access to the ANT Wireless and GPS receiver modules in iPhone/iPod Touch

别来无恙 提交于 2020-01-01 19:21:17
问题 I'm an iPhone/iPod-touch newbie, and would like to write an iPhone application utilizing the built-in ANT wireless radio. As I found out both the iPhone and iPod Touch have an ANT wireless module, that is used in the Nike+iPod Sport Kit to connect the Nike sensor with the iPhone/iPod. After some googleing, I didn't find much (one article was interesting, but not what I'm looking for). So my questions: Is it possible to access the built-in ANT Wireless device in iPhone/iPod Touch? Is it

How to plot a GPS location on an image being used as a map?

丶灬走出姿态 提交于 2020-01-01 19:17:08
问题 I have images of malls that I need to use as maps for an app I am making. I have the GPS lat/long of the bottom corners of the map and I figured out the distance from the bottom GPS coordinates to what would be the top of the map image. How ever these are not straight up and down linear maps meaning I can't just plot my lat and long all nice and neat. I've tried using various formulas and I'm so close but I can't plot the top lat and long of the top left and right of the map. So far this is

R: How to identify a road type using GPS?

五迷三道 提交于 2020-01-01 18:23:07
问题 I have a GPS coordinates of several points and I want to know if they are on a highway, or trunk road, or minor road, and it would be even greater if I could identify a road name. I'm using R leaflet to draw maps and I can see with OpenStreetMap that different types of roads are colored differently, and I wonder how I can extract this information. It's not a problem to use Google maps instead if it will solve my problem. I would appreciate any help. 回答1: You can use revgeocode() from ggmap :

GPS in windows mobile

佐手、 提交于 2020-01-01 18:17:14
问题 How would I go about obtaining the GPS cordinates in a windows mobile application? The sample app that comes with the SDK doesnt seem to work. I also have the wm 6.5 SDK which I heard had GPS stuff but I cant find it. Let me know if you have any good examples. 回答1: Go with GPS.Net. It's an excellent library, very easy to use and compatible with a whole pile of hardware implementations. We used it for Windows Mobile and Windows Xp/Vista versions of an application. 回答2: As of WCE 5.0 microsoft

Android - Is there a way to listen if GPS was enabled or disabled

假如想象 提交于 2020-01-01 15:56:10
问题 I write this code to receive location updates - PendingIntent launchIntent = PendingIntent.getBroadcast(context, 5000, intent, 0); manager.requestLocationUpdates(selectProvider(), 0, 0, launchIntent); I select the gps provider if its available, otherwise the network provider. Is there a way I could switch back to the gps one if it gets enabled later? Does the system broadcast an intent when gps provider is enabled or disabled? Could I set up a listener for the same? 回答1: public void

How to SET Android Mock GPS location?

巧了我就是萌 提交于 2020-01-01 11:48:52
问题 Description I'm having a issue while trying to use android mock locations, my main goal is to set the android GPS into thinking we are in a different spot, AKA fake GPS. Current attempts I have currently tried two different similar solutions, avaiable in both this websites: Programming Jungle Mobiarch Both tutorials are from 2012, I don't know if they are outdated or I'm having a hard time implementing them to work. Coding development First I make sure I have permissions: ACCESS_COARSE

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

[亡魂溺海] 提交于 2020-01-01 04:52:09
问题 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

How can I check whether the phone has GPS device or not?

与世无争的帅哥 提交于 2020-01-01 03:21:12
问题 I am trying to find piece of code which can tell me whether the android phone has GPS device or not? Most of the samples I am getting in search results are telling whether GPS is enabled or not. What I am interested in is whether Android phone has Physical GPS device or not? Thanks 回答1: public boolean hasGPSDevice(Context context) { final LocationManager mgr = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); if ( mgr == null ) return false; final List<String> providers =

Location listener works from a Service but not an IntentService

佐手、 提交于 2020-01-01 00:34:06
问题 I have an app where I am trying to periodically get user location and send to server. I have a service attached to an AlarmManager which executes every minute (for testing). The service finds the user location correctly and logs out the GPS co-ords. Once there is a GPS lock I cancel the location request and stop the service. When I ask for location updates, I start a Handler that executes 20 seconds later, this Handler removes the location update and stops the Service in case no lock is