java - 可以在PC上开发GPS软件吗
我想为平板电脑/笔记本电脑制作一个应用程序 我想制作软件来获取电脑的位置(经度和纬度)。 我可以用java编程语言为PC开发GPS吗??? 如果是,我需要下载什么软件来开发该应用程序???
i want to make an application for tablet PC / notebook i want to make software to acquire a location(longitude and latitude)for PC.
is that possible for me to develop GPS for PC with java programming language???
if yes, what software i need to download to develop that application????
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,这是可能的。
首先,您需要一个 GPS 接收器(内置于计算机中或连接到计算机上)。
通常,GPS 单元使用简单文本协议通过串行端口与主机通信。如果您不想自己解析协议,有很多库可以帮助您;只需谷歌“gps java”即可。
最后,请记住,GPS 装置通常无法在室内工作,因为它们需要无障碍的天空视野。
Yes, it's possible.
First of all, you'll need a GPS receiver (either built into the computer, or connected to it).
Typically, GPS units use a simple text protocol to talk to the host over the serial port. There are plenty of libraries out there that can help you if you don't want to parse the protocol yourself; just google "gps java".
Lastly, bear in mind that typically GPS units don't work indoors since they require an unobstructed view of the sky.
首先你至少需要有一个GPS设备来接收GPS信息!通常,设备通过 USB、串口或蓝牙连接。与设备的接口(阅读制造商的相关参考书)。一旦您开始获取信息,您所要做的就是解析数据并相应地采用您的程序!
First you need to have at least a GPS device to receive the GPS information! Usually, devices are connected through USB, serial port, or Bluetooth. Interface with the device (read the manufacturer's reference book on that). Once you start getting the information, all you have to do is to parse the data and adopt to your program accordingly!