gps

Visualising an arrow given pich and yaw?

情到浓时终转凉″ 提交于 2019-12-13 06:43:54
问题 how to visualise an arrow pointing to a certain position while I change my location. I mean, while holding my hand-set and moving around I want that arrow to point to a given latitude and longitude Note: pich and yaw has already been calculated. Regards, 回答1: I've actually just been working on an app to do this as a learning exercise, altho I don't use Pitch and Yaw, just Orientation. It's at https://github.com/jarofgreen/FindCoords - GPL open source and an apk file available. Screenshot at

Translate GPS coordinates to location on PDF Map

限于喜欢 提交于 2019-12-13 06:11:59
问题 I'd like to know (from a high level view) what would be required to take a pdf floor plan of a building and determine where exactly you are on that floor plan using GPS coordinates? In addition to location, the user would be presented with a "turn by turn" directions to another point on the map, navigating down hallways, between cubicles, etc. Use case: an iPhone app that determined a user's location and guided them to a conference room or person's office in the building. I realize that this

Does LocationManager:NETWORK_PROVIDER work without GPS enabled?

a 夏天 提交于 2019-12-13 06:03:44
问题 I'm wondering why my app still finds location although the GPS is disabled. So I asked myselft why this is possible and I have too less knowledge about this. Maybe the NETWORK_PROVIDER needs no GPS? I promise, GPS is really disabled. Can anyone tell me how this is possible? I have this in my App: in oncreate(): locationManager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); Method: public void getGpsLocation(){ locationManager.requestSingleUpdate(LocationManager.NETWORK

Get the GPS coordinate given the current location, bearing and distance

微笑、不失礼 提交于 2019-12-13 05:55:24
问题 I'm trying to get a GPS coordinate given the current location, bearing and distance. But I can't find any related to cocoa-touch. I've found the formula here Get lat/long given current point, distance and bearing Is there an easier method for iOS? Thanks in advance. 回答1: Converted the code in the link to Objective-C. - (double)degreesToRadians:(double)degrees { return degrees * M_PI / 180; } - (double)radiansToDegrees:(double)radians { return radians * 180/ M_PI; } - (CLLocationCoordinate2D

Not getting Latitude and longitude after every 1 minute in android

こ雲淡風輕ζ 提交于 2019-12-13 05:49:42
问题 I want to make an android program in that I get latitude and longitude in Toast after each 1 minute interval and populated on toast even after my application closed. I have tried as below,But I only getting on time latitude and longitude,Please tell me what should i do for it to get continuously lat long in toast.My code is as below: GPStracker.java package com.epe.trucktrackers; import java.util.Timer; import java.util.TimerTask; import utils.Const; import android.app.AlertDialog; import

Check if BlackBerry gps is enabled

北城余情 提交于 2019-12-13 05:45:15
问题 I am developing an app in which I have to check programmatically if gps is enabled or not for locations in phone? How do I find this? 回答1: if (!LocationInfo.isLocationOn()) { try { LocationInfo.setLocationOn(); } catch (ControlledAccessException cae) { // You don't have the rights to enable GPS programatically. // You might want to prompt the user for it. } } You might also want to have a look at the following functions: LocationInfo.isLocationSourceAvailable(int mode) - Determines if a

Is there a technology that can pinpoint an iPhone's *exact* location (to the feet/couple feet, indoors)?

白昼怎懂夜的黑 提交于 2019-12-13 05:33:50
问题 Is there is a way to determine an iPhone's exact location (indoors, and to a distance of just a couple of feet) via use of radio/antenna's or some other infrastructure located around premises (i.e a hospital, shopping mall, school). Will appreciate any ideas/direction (technologies, research) as for how to overcome this limitation. 回答1: If you mean for an area you have control over (setting up a location network for a specific school/hospital) as opposed to generic location, you'd be able to

GPS location/Region monitoring recap + how to switch on/off the gps signal (icon) in background [iOS]

限于喜欢 提交于 2019-12-13 05:22:47
问题 I'l like to know A) if it's possible to completely switch off the use of gps when the App is in background mode and I terminate it (long press on "home button", tap on the "X" of the corresponding task), even if "region monitoring" is active and there is the corresponding active flag in the App .plst . Also I'd like to recap how you can monitor the device location; I think there are three ways: - [locationManager startUpdatingLocation] - [locationManager

my app doesnt work ( infinite loop }

笑着哭i 提交于 2019-12-13 05:19:09
问题 My app keeps crashing onReceive Basically im sending gps coordinates to another android device and Im trying to build an equation of line from those sets of gps coordinates on a while(true) loop untill he will get to this line, Im using the while loop because I need to wait untill he will get coordinates to solve the equation of line. But it keeps crashing . thats my OnReceive code : package com.example.yeah; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.google

Can't affect values to a simple Double[] table which is always null - Comparaison between 2 codes

北城余情 提交于 2019-12-13 05:13:46
问题 I've asked a similar question about it : Can't affect values to a simple Double[] table which is always null I have a TXT file containing NMEA frames. I retrieve the latitude and the longitude of $GPGGA and $GPRMC frames. Then I convert the latitude and longitude into Decimal Degrees. The first version of my code is working great. Then I made a second one, more structured, but which doesn't work. Here is the second version of my code which doesn't work : /** * Updating position on Google Maps