gps

How to use Android LocationManager and Listener

北战南征 提交于 2020-01-22 10:33:46
问题 I'm not having any luck receiving any data from the GPS using the code below, and i'm not sure what I'm doing wrong, it seems like my code matches everything i see online. i'd like to eventually add this to a background service to log gps coordinates even when the activity isn't visible or if other apps are open and if the speed is greater than a certain defined amount, but at this point I can't even get any of the data to show up. i'm relatively new to android but i can't figure out what am

How to use Android LocationManager and Listener

百般思念 提交于 2020-01-22 10:33:08
问题 I'm not having any luck receiving any data from the GPS using the code below, and i'm not sure what I'm doing wrong, it seems like my code matches everything i see online. i'd like to eventually add this to a background service to log gps coordinates even when the activity isn't visible or if other apps are open and if the speed is greater than a certain defined amount, but at this point I can't even get any of the data to show up. i'm relatively new to android but i can't figure out what am

GPS网络时间服务器价格和功能区别

你。 提交于 2020-01-22 10:11:47
GPS卫星定位系统它可以应用在军事、国防、通信、授时等多个领域。GPS卫星定位系统应用在授时方面,是将卫星信号传送给设备并进行授时。GPS网络时间服务器是接收GPS卫星信号的时间服务器,它可以将卫星时间信号转换为网络、串口、秒脉冲等时间信息,能为用户提供相应的时间信息。GPS网络时间服务器主要输出网络时间信号,能在多种环境中进行授时,并且授时准确使用方便,改变了传统的钟表授时方式。 时间服务器的功能和种类都所有不同,根据输出信号分为串口时间服务器,NTP网络时间服务器,CDMA时间服务器,根据卫星信号源分为GPS时间服务器,北斗时间服务器,GPS北斗时间服务器等等。一般时间服务器的功能不同价位也会不同,比如有的时间服务器要求,有多路网口输出、有B码信号输出、有串口信号输出。还比如有的时间服务器在网口、NTP请求量、工作温度、存储温度、电源、操作系统、晶振等方面不同也会影响价格。 在技术不断进步下,NTP网络时间服务器的功能也在不断完善,它的功能已经面向多样化发展,并能满足大多数用户和使用环境的需求,并且设备性价比高,授时方便且时间精准。SYN2101型NTP网络时间服务器以GPS卫星信号为时间源,使用Linux操作系统,可以输出网络信号、串口信号、秒脉冲信号等时间信息,并且内置温补晶振在无卫星信号情况下还能对设备进行守时。该产品还增加了防火墙保护,心跳检测,冗余备份

how to convert gps north and gps west to lat/long in objective c

北战南征 提交于 2020-01-22 02:56:29
问题 I got these values from server: <gps_n>34.22.123</gps_n> <gps_w>81.59.345</gps_w> I would like to convert these values to latitude/longitude in Objective C. Would you please give me a guide to do this? Thanks 回答1: The formula for both lat/long (n/w) is: Degrees+(minutes/60)+(seconds/3600) From this page: http://webmaster10.com/ldr/lat-long-conversion.html 回答2: The example you have given, already are latitude/longitude coordinates. There are many such lat,lon formats, what you want are lat

GPS同步时钟装置应用及选择

僤鯓⒐⒋嵵緔 提交于 2020-01-21 18:54:10
GPS同步时钟装置应用及选择 GPS是全球定位系统的简称,GPS具有全天时、全天候、高精度、定位和授时服务,GPS 卫星 授时成本低、安全可靠、覆盖范围广。GPS同步时钟装置,是指从GPS卫星上获取时间信号,将时间信号通过交换机传输给 需要 时间的设备,并实现设备和 GPS同步时钟的时间同步。GPS同步时钟装置SYN4505型性能可靠授时准确,可以给上万台客户端进行授时。 随着科学技术的发展,各个领域都对授时设备提出了越来越高的要求,而SYN4505型标准同步时钟的高精度时间基准可以为通信、电力、 机场、酒店 、 学校 、 医院、 场馆、 广播电视 、安防监控、工业控制、 地铁轻轨 、 火车站、 等领域提供标准时间信号。其中 电力系统是与时间密切相关的系统 ,电力系统各设备之间的时间同步是测量、控制和保护电网安全稳定运行的重要基础和支撑。而 地铁轻轨 的 电力监控系统运行要求,都需要采用标准时钟信号 ,就需要 GPS同步时钟为地铁提供统一的标准时间信息 。所以在日常生活和工业生产控制中, GPS同步时钟装置的应用是必不可少的。 目前市场上的授时设备有很多,供应商也有很多,消费者在选择时也会难以抉择,其实先要确定供应商是否为自行研发生产的,然后在选择产品的性能。对于终端客户的选择我们会和客户确定授时类型、以及授时精度和授时设备信号溯源进行推荐,也会根据客户确定的参数推荐

How to keep background gps service alive

喜夏-厌秋 提交于 2020-01-21 03:50:06
问题 I'm trying to have a background gps location listener as a service that can be used by all activities in my app. It should also be scanning for locations until I "kill" it. However I realized that after a couple of hours the gps service gets killed and I can't get anymore locations. How do I keep this service alive (the locationManager and location listener at least) until I want it off? Thanks public class GPS extends IntentService { public static LocationListener loc_listener = null; public

使用Python读取照片的GPS信息

百般思念 提交于 2020-01-19 16:05:54
昨天听人说,用手机拍照会带着GPS信息,原来没有关注过这个,因此查看下并使用代码获取照片里的GPS信息 查看图片文件属性 EXIF   可交换图像文件常被简称为EXIF(Exchangeable image file format),是专门为数码相机的照片设定的,可以记录数码照片的属性信息和拍摄数据 注:   EXIF信息不支持png,webp等图片格式 python通过exifread模块获得图片exif信息 ExifRead Python library to extract EXIF data from tiff and jpeg files. 安装 pip install exifread 读取GPS import exifread import re def read(): GPS = {} date = '' f = open("E:\\python\\IMG_20200119_145630.jpg",'rb') contents = exifread.process_file(f) for key in contents: if key == "GPS GPSLongitude": print("经度 =", contents[key],contents['GPS GPSLatitudeRef']) elif key =="GPS GPSLatitude":

—— GPS测量原理及应用复习-7 ——

南楼画角 提交于 2020-01-19 03:19:13
以下总结均基于自己的理解,欢迎指出不到位和错误的理解。 第八章 GPS测量的设计与实施 8.1 GPS测量的技术设计 GPS网技术设计的依据 GPS测量规范(规程):主要指国家、城市以及行业标准。 测量任务书:上级给下级下达的技术要求文件。对网布设的范围、目的、网的精度和密度、提交成果资料的项目和时间、完成任务的经济指标等提出具体要求。 布网的设计既要符合 有关标准 又要满足 任务要求 。 GPS网的基准设计 通过GPS控制网获得是 基线向量 ,属于WGS—84坐标系的 三维坐标差 。而在实际工作中,需要的是 国家坐标系 或 地方坐标系 的坐标。所以在GPS网的技术设计时要明确GPS成果所采用的坐标系统和起算数据,即 明确GPS网所采用的基准 。 G P S 网 的 基 准 { 位 置 基 准 : 由 给 定 的 起 算 点 确 定 方 位 基 准 : 由 给 定 的 起 算 方 位 角 确 定 尺 度 基 准 : 测 距 仪 测 定 的 基 线 边 、 G P S 基 线 边 或 两 个 起 算 点 间 的 距 离 确 定 GPS网的基准 \begin{cases} 位置基准:由给定的起算点确定 \\ 方位基准:由给定的起算方位角确定 \\ 尺度基准:测距仪测定的基线边、GPS基线边或两个起算点间的距离确定 \end{cases} G P S 网 的 基 准 ⎩ ⎪ ⎨ ⎪ ⎧

Little Fluffy Location Library can't find location

偶尔善良 提交于 2020-01-17 14:44:05
问题 My Goal is to have a service that runs in the background and sends my device's location to a remote server at a specified interval (eg. every 10 minutes). I am trying to use Little Fluffy Location Library to optimize battery life while getting the device's location. I haven't been able to successfully get the location yet. I am not sure what I am doing wrong. I followed this service tutorial and this LFLL example. Each time I run this, to Toast in MyService.java "No location found yet"

How does the distanceTo() method of the Location class work internally?

本秂侑毒 提交于 2020-01-17 14:07:23
问题 I've tried using distanceTo() between two Location objects, but AFAIK it isn't returning the correct values in all situations. Instead, I've written a custom method which returns what I think are the correct values. float distanceBetween(Location l1, Location l2) { float lat1= (float)l1.getLatitude(); float lon1=(float)l1.getLongitude(); float lat2=(float)l2.getLatitude(); float lon2=(float)l2.getLongitude(); float R = 6371; // km float dLat = (float)((lat2-lat1)*Math.PI/180); float dLon =