gps

How to receive GPS data from device with PHP?

假装没事ソ 提交于 2019-12-03 23:07:16
I have a car GPS device, the only thing I can change is the IP-address. Is it possible to have shared hosting with a dedicated IP-address (that part is possible) and then to have a PHP script that picks up the data that is being send? So what is in my mind: GPS device send gps data to IP-address. That IP-address has a PHP script that picks up the data and use it. As requested a little bit more detailed. There is a question that is exactly the same but don't have an answer: how-to-get-data-from-gps-and-send-to-server-and-how-save-to-database It is a Chinese car GPS device with a standard IP

Android getbearing only returns 0.0. Trying to use to rotate current location icon

北慕城南 提交于 2019-12-03 23:04:59
问题 This is in part an extension to a previous question: Android programming, mapview locationoverlay: how to change the default blue location dot, with another image I have been working to get the devices location to display on the map (easy with enablemylocation) but I need to replace the default icon (easy enough, sorted that) and then rotate it to correspond to the current device bearing - acquired from GPS, as it needs to be direction of movement, not direction the phone is facing. I am

android turn GPS On & Off Programmatically in 2.2?

人走茶凉 提交于 2019-12-03 22:47:21
i am using GPS in My application and i want to turn GPS on and off Programmatically to save power how can i do it :( this is for turn off i need the turn on please private void turnGPSOnOff(){ String provider = Settings.Secure.getString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED); if(!provider.contains("gps")){ final Intent poke = new Intent(); poke.setClassName("com.android.settings", "com.android.settings.widget.SettingsAppWidgetProvider"); poke.addCategory(Intent.CATEGORY_ALTERNATIVE); poke.setData(Uri.parse("3")); sendBroadcast(poke); //Toast.makeText(this, "Your GPS

Blackberry - change latitude and longitude on the device to test app

旧街凉风 提交于 2019-12-03 22:42:22
问题 I want to test my app on the device. Is it possible to hard code the latitude and longitude values somewhere in the device settings so the app reads those instead of the current location? I want to test my app for different locations other than my current location. 回答1: Inside GPS mockup If you have access to your application code, you can always create a mockup implementation for LocationProvider so it will read location and speed data from file or RecordStore and return it as a Location,

React Native Android location request timed out

坚强是说给别人听的谎言 提交于 2019-12-03 22:32:20
In IOS there isn't a problem while looking for gps coords. It works fine. On Android side its not stable as IOS. This problem both in real device and emulator. Sometimes it can find location, but sometimes not. Looking for 3days but there wasn't find a solution. When my app cannot find my location, I tried via Google Maps app, it works like charm. Here is my code for both IOS and Android; getCurrentPosition() { navigator.geolocation.getCurrentPosition( (position) => { this.setState({ initialPosition: position }); alert(JSON.stringify(position)) var coords = new Coords(); coords.Latitude =

How to keep GPS turned on when switching between activities but off when when “home” is pressed

北战南征 提交于 2019-12-03 22:20:12
I am trying to figure out the best way to implement Listener to location with the onResume and onPause. Best I can do not it to turn it off on onPause and reconnect on onResume. But then I keep having disconnect-reconnect when all I want is for the GPS to stay on for the duration of the application. When Home is pressed (or another application is interrupting) then GPS can be downed off for battery saving. Any ideas? Thanks. Your question can be generalized to "How do I tell when my app moves into/out of the foreground?" I have used the following approach successfully in two different apps

Should I create service for GPS tracking APP?

a 夏天 提交于 2019-12-03 21:58:50
I am writing a location service App that log where the user has been every minute. Should I create a service for the GPS process? OR just create the LocationManager at the Activity? Which one is better? Moreover, I have tried to hide the application by pressing hardware home button and turn off GPS at Setting -> Location. I found that the App closed automatically within an hour. Is it possible to keep the application always alive? I highly recommend creating the gps at the very least as a thread in the activity, if you want to be slick set it up as a service and broadcast intents from inside

iPhone GPS Performance

浪子不回头ぞ 提交于 2019-12-03 21:24:33
I'm writing an iPhone App that relies on getting the device location. Management have tasked me with producing data on how well the GPS performs in cities (tall buildings) and within buildings. Do any developers have data on reliability of GPS and the fall back to cell/wifi tower triangulation? Management-friendly info would be best but raw data that I can translate would also be fine. To determine an object's location, the GPS system must receive a radio signal from at least three satellites. GPS accuracy is affected by a number of factors, including satellite positions, noise in the radio

Get precise Android GPS-Location in Python

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 21:09:34
I try to obtain the GPS-Location of my Android Phone in Python (using QPython3 app). This kind of works, but it seems there are several LocationProviders in Android: gps: pure gps location, slow, energy consuming, but very accurate, and exactly what I need. network: mix of gps and wifi/cell locating, faster, but less accurate passive: like above but completely without using gps Problem: When I run my script (below) I only get my location provided by "network" wich is not accurate enough. But I can't find a way to force a specific LocationProvider. Code: # import needed modules import android

Get City name from GPS co-ordinates

南楼画角 提交于 2019-12-03 20:44:56
I want to get the name of the city from the GPS coordinates. I can get the details of the GPS points using Google API http://maps.googleapis.com/maps/api/geocode/output?parameters Where output is XML which I don't want to be... For example http://maps.google.com/maps/api/geocode/xmllatlng=53.244921,-2.479539&sensor=false&region=gb returns me the XML details of the coordinates.... Which I don't think is easy to get the name of the City.... I want only the name of the city.. Thanks for you help in advance John Riselvato The correct URL is below http://maps.googleapis.com/maps/api/geocode/xml