gps

How does google map location works?

守給你的承諾、 提交于 2019-12-22 14:44:49
问题 My question is how does google map or mobile GPS able to find mine current location ? My high level understanding after reading this article is , GPS receiver gets the location coordinates through these satellites and this location is further passed to Google Map(or any other client) API which then locates the exact location on map. Is it correct ? Somewhere i also read that Mobile towers also plays the role. But my unserstanding is that this can be used to track the mobile location if

Why does Location.getAltitude() always return zero, at least in the emulator?

会有一股神秘感。 提交于 2019-12-22 14:03:52
问题 Does anybody know why my getAltitude in the following always returns 0? package com.example.helloandroid; import android.app.Activity; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.util.Log; public class HelloAndroid extends Activity { @Override public void onCreate(Bundle savedInstanceState) { Log.d(

Trying to Pull GPS Metadata from UIImagePickerController but NSLog Shows Null

不问归期 提交于 2019-12-22 12:22:42
问题 Using UIImagePickerController I am attempting to gather GPS info from the metadata of the image. Here is my code sample: NSDictionary *imageMetadata = [info objectForKey: UIImagePickerControllerMediaMetadata]; NSLog(@"Working META: %@",imageMetadata); CGDataProviderRef dataProvider = CGImageGetDataProvider(originalImage.CGImage); CFDataRef data = CGDataProviderCopyData(dataProvider); CGImageSourceRef imageSource = CGImageSourceCreateWithData(data, nil); NSDictionary *metaDict = (__bridge

Converting GPS coordinates (latitude and longitude) to decimal

杀马特。学长 韩版系。学妹 提交于 2019-12-22 12:20:56
问题 I am getting the latitude and longitude from GPS device. They look like 21081686N,079030977E If I manually convert them to 21°08'16.86"N, 79°03'09.77"E and check on Google maps, the location is almost correct. How do I convert these values in java and convert them to decimal accurately? Any JAVA libraries? Thanks, 回答1: You shouldn't need a library, but rather just break up the strings into their component parts. Perhaps this will help. Please note I'm not a Java programmer so this syntax

lastKnownLocation is always returning null when gps is off

喜夏-厌秋 提交于 2019-12-22 12:19:52
问题 I am using Google Service API , LocationServices.FusedLocationApi to find user's current and then updated Location. I have tested on emulator as well as on actual device and I have found that if I turn off GPS LocationServices.FusedLocationApi.getLastLocation() always returns null, however I get a valid value if I turn on the GPS. Here is the code which I am using: private GoogleApiClient mGoogleApiClient; private Location mLastKnownLocation; mLastKnownLocation = LocationServices

Location update rate in Google Maps (Android)

霸气de小男生 提交于 2019-12-22 11:37:35
问题 I'm writing a simple GPS based app for location awareness. Whenever GPS is enabled, the app requests location updates and prints latitude and longitude in a TextView . If GPS is disabled, the location provider fall-backs to LocationManager.NETWORK_PROVIDER for triangulating device position relative to neighboring cell-towers. The aim is whenever device movement is detected, it should start populating the TextView with lat/long. When there is no movement, the process should stop. In order to

Cordova Angularjs ask for GPS

匆匆过客 提交于 2019-12-22 11:32:57
问题 I program an app where I need GPS. If the GPS is off, how can I ask the user to turn on GPS, like google maps? After a while of googleing I found nothing compareable... My other question is, why I get "Use location? - 2", when the GPS is off? I thought, if the GPS is off, $window.navigator.geolocation is false? controller.js if ($window.navigator && $window.navigator.geolocation) { function success(pos) { $rootScope.position = { x: pos.coords.latitude, y: pos.coords.longitude }; } function

Issues extracting exif data for exif 2.3 using PHP Version 5.2.9

╄→гoц情女王★ 提交于 2019-12-22 10:33:50
问题 PHP Version 5.2.9 I was wondering if anyone has experienced issues (and possibly found a resolution) with extracting GPS or even just all EXIF data using PHP's exif_read_data() for EXIF 2.3. My company recently bought a Fujifilm Finepix XP150 which allows for GPS directional data, this is essential for a tool I am building for my company. The code below is what I am using to extract, I am passing through once for a list of the entire EXIF data and the second time is giving me the longitude

Receive NMEA0183 data from COM PORT C++

冷暖自知 提交于 2019-12-22 10:09:16
问题 Hy everybody! I wrote a small gps application in simple C++, what switch the protocoll, send command to the gps chip...etc. The write to the GPS port is working good. But when I try to read the port (for check the accepted commands) I receive a lot of stupid characters. Normally an NMEA output message is something like this: $GPGLL,4916.45,N,12311.12,W,225444,A And I received similar: 1C0CFC14 I dont know whats wrong... This part of my code is the next: LPCVOID buffer[100]; ReadFile(hSerial,

help in using GPS coordinates, Android

你离开我真会死。 提交于 2019-12-22 09:55:16
问题 I am using this code to get my location and print the coordinates on the screen. package com.example.alpha; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.widget.Toast; public class alpha extends Activity { private LocationManager lm; private LocationListener locationListener; /** Called when the activity is first created.