gps

Objective-C - Adding GPS information to a photograph

↘锁芯ラ 提交于 2020-01-07 02:18:04
问题 I am wondering if it is possible to add GPS information to a photograph when saving the item to the camera roll. The code I currently use to save the image is: UIImage *theImage = (UIImage *)[info objectForKey: UIImagePickerControllerOriginalImage]; UIImageWriteToSavedPhotosAlbum(theImage, self, @selector(image:didFinishSavingWithError:contextInfo:), nil); I am wondering how I can modify the image EXIF data to add the current location, and make it compatible with the 'Places' functionality on

convert gps position from double value

*爱你&永不变心* 提交于 2020-01-06 21:14:11
问题 I'm using uniguard UT01 gps car tracker that works with noran protocol the data that gps_tracker send to server has a structure like this: my recieved data is: 52 0 8 0 1 12 0 0 0 0 0 0 1 67 149 240 109 66 194 95 17 66 78 82 48 57 66 49 55 53 55 50 0 0 49 54 45 48 56 45 49 51 32 48 56 58 51 48 58 52 54 0 now i want to get latitude and longitude from this when i convert bytes 15,16,17,18 to longitude, i do this: i convert 149 240 109 66 to decimal value: 1114501269 then divide it by 30000 :

How to create a WCF that listens to TCP requests over web

夙愿已清 提交于 2020-01-06 18:31:12
问题 I have a gps device that will send packets to TCP connection hosted over web that will have a static IP address & dedicated port for it. My question is how to achieve it using WCF ? Or if WCF is needed or not for this problem. Please help me. Thanx in advance. 回答1: Did you mean TCP embedded transported/embedded using http? or just TCP but using the internet? The last is supported for sure. To set a TCP connectionover WCF is easy, just use NetTcpBinding, you can set this in C# code or better

How can I use my gps coordinates via sms-body android

六眼飞鱼酱① 提交于 2020-01-06 14:44:19
问题 I have to send my GPS coordinates via SMS, How can I take the latitude and longitude values in SMS body? I tried something but i cant make it with +@id/lat or +String.valueOf(location.getLongitude() in intent.putExtra("sms_body","there would be latitude and longitude values.."); Here is the SmsActivity.java public class SmsActivity extends MainActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);

Unable to show current location on google map?

被刻印的时光 ゝ 提交于 2020-01-06 14:42:22
问题 I am working on app which show my current location on google map.I have tried hard but i am not able to show my current location on google map. Below is my code. ' public class HomeFragment extends Fragment implements OnMapReadyCallback, LocationListener { GoogleMap mMap; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } public void initGamp(View root) { SupportMapFragment mapFragment = (SupportMapFragment) getChildFragmentManager()

Android: Service to get and send GPS co-ordinates to server

こ雲淡風輕ζ 提交于 2020-01-06 10:51:16
问题 I know this is duplicate question, but I am not getting the explanatory example or solution. I want to develop an application which after run calls a background service which takes the GPS location of device and send it via PHP web service to the server. And when user wants, he can stop the service. I am working on service for the first time. I searched on google and found many tutorial, but not getting it. So please guide me for this. 回答1: you can able to send current location or lat and lag

Getting my gps location while I'm offline

喜欢而已 提交于 2020-01-06 08:22:54
问题 I've doing some research about getting my gps position. I'm using google maps API v2 so in order to get my current position I used this locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); List<String> providers = locationManager.getAllProviders(); Criteria criteria = new Criteria(); bestProvider = locationManager.getBestProvider(criteria, false); Location location = locationManager.getLastKnownLocation(bestProvider); so from my understanding there is a list in the

MapBox marker offset

元气小坏坏 提交于 2020-01-06 08:16:20
问题 I'm using the MapBox SDK for iOS and encountered a problem I can't find a good solution for. In the iOS the MKAnnotationView allows me to do the following: view.centerOffset = CGPointMake(0, -15); Is there a MapBox RMMarker equivalent for this? So basically I need to move the marker a few pixels up from its original position, taking the zoom level into account as well. (So when you zoom, the marker's bottom part keeps fixed on the same point) As you can guess, there's a little arrow at the

MyLocationOverlay not calling onProviderDisabled

久未见 提交于 2020-01-06 06:54:30
问题 This is my code that behaves a little strange: locationOverlay = new MyLocationOverlay(this, map) { @Override public void onLocationChanged(Location location) { super.onLocationChanged(location); updatePosition(locationOverlay.getMyLocation()); } @Override public void onProviderDisabled(String provider) { if(provider.equals(LocationManager.GPS_PROVIDER)) showNoGPSWarning(); } }; showNoGPSWarning shows a Dialog that asks if GPS should be enabled (like this). Everything wokrs perfectly fine

MyLocationOverlay not calling onProviderDisabled

帅比萌擦擦* 提交于 2020-01-06 06:53:07
问题 This is my code that behaves a little strange: locationOverlay = new MyLocationOverlay(this, map) { @Override public void onLocationChanged(Location location) { super.onLocationChanged(location); updatePosition(locationOverlay.getMyLocation()); } @Override public void onProviderDisabled(String provider) { if(provider.equals(LocationManager.GPS_PROVIDER)) showNoGPSWarning(); } }; showNoGPSWarning shows a Dialog that asks if GPS should be enabled (like this). Everything wokrs perfectly fine