gps

iOS detect mock locations

牧云@^-^@ 提交于 2019-12-19 06:33:25
问题 Currently I'm working on an App which geolocation capabilities are its most important feature. Actually we're very concerned about getting GPS values mocked up. I've read a lot of comments regarding mocking locations on both iOS and Android and most of them tend to explain an unjailbroken iOS device can't mock locations, but the truth is I've created another project, with a GPX file to mock up location on that project and when executed, the entire system believes I'm in another city. All my

How to draw at the current GPS location on MapView using MyLocationOverlay?

[亡魂溺海] 提交于 2019-12-19 04:57:22
问题 I'm trying to draw a custom gps-location icon. I'm using MapView and have created a class MyLocationArrow that extends MyLocationOverlay. I override drawMyLocation() and draw a point at 100,100. But this is the coordinates on screen. How do I get the screen-coordinates from the current GPS-location? 回答1: You can use android.graphics.Point toPixels(GeoPoint in, android.graphics.Point out) Converts the given GeoPoint to onscreen pixel coordinates, relative to the top-left of the MapView that

How can I send the GPS and Network location cordinates to a server (static IP)?

依然范特西╮ 提交于 2019-12-19 04:21:56
问题 I am a beginner in the Android Development.I want to make an android app which sends the GPS and network locations (lat & long) to my server (static IP). I have found the following code and it worked successfully, data receive at the app which is already made at server side (Right now it has nothing to do with client app) Data received at my Server when I click the button 'Send Location' on my Android App. GET /31.4244456/74.7349772 HTTP/1.1 Host: 180.178.169.77:6081 Connection: keep-Alive

Raycasting algorithm with GPS coordinates

て烟熏妆下的殇ゞ 提交于 2019-12-19 04:08:28
问题 I'm making a small application with Google maps that determines if an entered address is part of a predefined service region. The user enters an address, and a PHP script fetches the lat/long from the Geocoding API and applies raycasting with a bunch of coordinates that make up the vertices of the region (taken from a KML file Maps generated). The problem is this: it works most of the time, but some addresses outside the service region incorrectly report as eligible, while some others inside

Realtime locating of the android device from another device

人盡茶涼 提交于 2019-12-19 04:01:37
问题 I have an app where i wanted to locate the exact location of the device. Like if you take taxi, i wanted to locate where exactly the taxi. Taxi driver will be using android device. So from that device i wanted to locate the cab location for other users who wants to see where the cab is. I have tried uploading current location of cab driver to server as cab moves for few meters by using requestLocationUpdates(String provider, long minTime, float minDistance, LocationListener listener) and I

C# serial communication with u-blox gps

假装没事ソ 提交于 2019-12-19 03:45:29
问题 I have a GPS from u-blox.com with a USB-connection and driver. The driver installs a virual COM port that pops up when you plug the USB in. Using a hyperterminal I can then watch the flow of data from the GPS. Then I want the data in my program, not so easy... I have implemented some methods using the serialPort class to read from the GPS, but am unsuccessful. I have programmed several serial device readers and writers before in C#, but this one stops me. As an example, the simple code in

How to find the distance between two points along a specific route?

有些话、适合烂在心里 提交于 2019-12-18 18:09:13
问题 I'm developing an android app for my college that helps students track the current location of the college bus and also give them an estimated time when the bus might reach them. As of now I get the current location of the bus(via a device present on the bus) and the location of the student. I'm stuck at the point where I have to find the distance between the two GPS co-ordinates. I have to find the distance between the bus and the student "along a specific route" (i.e the path the bus takes)

Why is my CLLocation speed so inaccurate?

醉酒当歌 提交于 2019-12-18 17:49:05
问题 I´m playing a bit with the iPhone SDK and I want to show the current speed in my application. There are so many apps that can do that really precise, especially for low speeds like running or biking. The best I've seen is RunKeeper. But, in my application, the speed is absolutely inaccurate. In low speeds it is always null, and only at higher speeds it shows some values but they are rarely updated and not really useful. - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:

Why is my CLLocation speed so inaccurate?

风流意气都作罢 提交于 2019-12-18 17:49:02
问题 I´m playing a bit with the iPhone SDK and I want to show the current speed in my application. There are so many apps that can do that really precise, especially for low speeds like running or biking. The best I've seen is RunKeeper. But, in my application, the speed is absolutely inaccurate. In low speeds it is always null, and only at higher speeds it shows some values but they are rarely updated and not really useful. - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:

longitude reading measured in degrees with a 1x10^-7 degree lsb, signed 2’s complement

a 夏天 提交于 2019-12-18 17:37:10
问题 I am receiving data from a gps unit via a udp packet. Lat/Lng values are in hex. Example Data 13BF71A8 = Latitude (33.1313576) BA18A506 = Longitude (-117.2790010) The documentation explains that longitude/latitude readings are measured in degrees with a 1x10^-7 degree lsb, signed 2’s complement. For the Latitude I can convert using this formula: 13BF71A8 = 331313576 * 0.0000001 = 33.1313576 This code works for Lat but not for Lng: function convertLat(h){ var latdec = parseInt(h,16); var lat =