gps

C#: GPS Tracking system [closed]

心已入冬 提交于 2019-12-02 16:48:46
How do I go about building a GPS tracking system with mobile (with GPS) in C#.net ? The scenario is Track a user (service engineer, nothing illegal here) via a GPS enabled mobile Phone. What software and hardware will I require? Is there any open source implementation? For a vehicle tracking system, how do I go about with GPS? I would like to know the various steps/procedure. I am looking for some right direction. I built a Window Forms version to display information from a GPS. Haven't really touched it much since, but if you are interested the code is on CodePlex. http://gps.codeplex.com

How to get coordinates of an address in android

可紊 提交于 2019-12-02 16:23:07
How do i get gps co-ordinates of the location/address entered by user in android ? Natali Geocoder geocoder = new Geocoder(<your context>); List<Address> addresses; addresses = geocoder.getFromLocationName(<String address>, 1); if(addresses.size() > 0) { double latitude= addresses.get(0).getLatitude(); double longitude= addresses.get(0).getLongitude(); } You can use Android's Geocoder to do reverse geocoding: Geocoder geocoder = new Geocoder(this, Locale.getDefault()); List<Address> addresses = geocoder.getFromLocationName(myLocation, 1); Address address = addresses.get(0); double longitude =

GPS: How NTP time injection works

拥有回忆 提交于 2019-12-02 16:23:06
I've recently known about a gps.conf file in the /system/etc/ directory. Seems that tweaking NTP_SERVER values to NTP servers nearer to the usual location improves TTFF. Reading the source code in the LocationProvider class, seems that at boot, time is retrieved from NTP server and "injected" in the calculations. AFAIK each GPS sat has a very accurate atomic clock, and every one in the constellation is synchronized to the so called "GPS time". Once the receiver has got 4 or more satellites, it solves (by some method) an equation where there are four unknowns: x,y,z,b; where (x,y,z) is the

How to find out why GPS coordinates are missing in Android?

偶尔善良 提交于 2019-12-02 15:59:06
问题 I am trying to get a device's location information using GPS, but for some reason one of the two coordinates is missing sometimes. This is the code: LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER); double longitude = location.getLongitude(); double latitude = location.getLatitude(); Log.d("LOCATION1", "Longitude: " + longitude); Log.d("LOCATION2", "Latitude: " + latitude); Sometimes I

How can I get the GPS raw data (satellites pseudo range)?

ぐ巨炮叔叔 提交于 2019-12-02 15:58:35
How can I read GPS raw data, to be more specific I need the saellites pseudo range. This data is not available in NMEA format. Satellites pseudo-ranges are not available in the official API , neither through the GpsStatus.Listener nor the GpsStatus.NMEAListener interfaces. The only available info available in the GpsSatellite class are: PRN azimuth elevation C/N0 a "usedInFix" boolean. The Android source code asks just those fields from the native code, so no hope to get it from any other Java API. The best way for you to get this data anyway (which is not suitable for a Market-able

How to prevent the rounding off when getting doubleValue from string?

为君一笑 提交于 2019-12-02 15:52:46
问题 I am getting latitude and longitude from server in JSON which is in string format then i am using this latitude and longitude by converting the values of latitude and longitude in double value by using default doubleValue function but by using this value is rounded off. So, How can i prevent the rounding off when getting doubleValue from string? Here is my code CLLocationCoordinate2D defaultLoc; defaultLoc.latitude = [[self.obj valueForKey:@"latitude"] doubleValue]; defaultLoc.longitude = [

Android GPS location accuracy issue

烈酒焚心 提交于 2019-12-02 15:32:53
I am working on gps tracking apps in android. Here is my code architecture: BackgroundSyncService : A service class that is used for getting location update. Here GoogleApiClient is initialized and implements others Location related methods. AppRunCheckerReceiver : A BroadcastReceiver class that will check if my BackgroundSyncService is running or not in a time interval. If it stopped then it start. GpsEnableReceiver : A BroadcastReceiver it will fire if gps status changed. It will check if my BackgroundSyncService is running or not in a time interval. If it stopped then it start.

How to get location that isn't out of date?

为君一笑 提交于 2019-12-02 13:36:37
问题 After GPS is enabled, it will take some time before the GPS is ready. So use this code may get a location that is out of date: location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); I can't use the location that is out of date. How can I get the location that I need? Here is a similar question: Android: getLastKnownLocation out-of-date - how to force location refresh? From it, I can use LocationListener to get the updated location, which should be not out of date. It's

Javascript/PHP can I get GPS location and send it to me?

故事扮演 提交于 2019-12-02 13:33:39
Ok here's what I want: I need something like a Javascript or PHP script to get a gps location from a visitor, and then secretly send it to me (I won't use this bad, it's for an website that prevents my iPhone from being stolen) I want that if a thief opens the website (which I will webclip, name Safari and give the safari icon) I automatically get his location and he's redirected to google or something else So basically like this: navigator.geolocation.getCurrentPosition(GetLocation); function GetLocation(location) { //Some script that sends the location secretly to me } { windows.location=

Wait for current location - GPS - Android Dev

痞子三分冷 提交于 2019-12-02 12:38:25
问题 I have to wait to get the current location, just like when you are in Google maps and it requests for your location. If it can't get any location inform the error and do nothing. I read the answers here and in web but all say that I have to use getLastKnownLocation method, but I don't need this, I just need the current location. If not, I don't do anything. 回答1: Read this from yesterday: GPS Android - get positioning only once But here is how you can get the current location: public class