如何在旅行期间使用 iPhone 高效追踪我的地理位置
我要去泰国旅行,我想记录我的位置,以便随后用数码相机拍摄的照片进行地理标记(iPhone 的相机不够好)。这里有两件事很重要:
- 我不想手动更新
- 我希望电池能够使用尽可能长的时间,因为我能够充电的时间会很少
我考虑过创建一个网页定期将我的地理位置发送到将其存储在数据库中的脚本,但我不知道 GPS 数据在 Mobile Safari 中是否可用。其次,由于国外移动数据使用的定价,我希望发送的数据尽可能小,发送的频率也尽可能少。
有什么建议吗?这里有什么好的解决方案吗?
I'm going to travel through Thailand and I want to keep track of my location to geotag photos afterwards taken with a digital camera (iPhone's camera is not good enough). There are two things that are important here:
- I don't want to update manually
- I want the battery to last as long as possible, since the times I will be able to charge will be scarce
I've thought about creating a web page that periodically sends my geolocation to a script that stores it in a database, but I don't know if GPS data is available in Mobile Safari. Second, I want the data I send to be as small as possible, and the frequency this is done s few as possible, because of the pricing of mobile data usage abroad.
Any suggestions what would be a good solution here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定 Mobile Safari 中是否可以使用 GPS 数据。但是,您显然可以创建一个执行此操作的应用程序。
然而,一个可能不同的设计是,您可以将坐标保存在本地文件(或数据库)中,而不是每次都上传。这样您实际上就不会发送任何数据并避免数据上传费用。
至于电池寿命,您可以选择读取坐标的时间间隔,而不是不断更新。另外,不使用 GPS 进行定位可能会在电池方面更有效(不过我只是在这里猜测)。
I'm not sure if GPS data would be available in Mobile Safari. But, you could obviously create an app that does this.
One design thing that could be different however is that you can save locally to files (or a database) the coordinates instead of uploading each time. That way you won't actually be sending any data and avoid the data upload charge.
And as for battery life, you can select a time interval at which you read your coordinates instead of constantly updating. Also not using GPS for the location might be more efficient battery-wise (I am just guessing here though).