将 GPS 坐标发送到服务器的最佳方式?
第一次使用,动作要轻柔。 这是为期一年的大学项目的一部分,正在寻求正确方向的帮助。
使用 iPhone 4 实时发送/接收 GPS 坐标(尽可能接近)
最好的方法是什么,正在查看 GameKit Q&A 此处用于手机之间的通信,但我说的对吗?它仅适用于 bt 和 wifi? iPhone 的出现对我来说没有什么好处。
据我所知,Java RMI 可以很好地解决这个问题,但这就是 Java :-( 发送坐标,然后向多个电话发送服务器回调。 中间有服务器就好了
处理 iOS 时最好的方法是什么?
干杯
额外编辑:
20 个设备中的每一个都必须知道所有其他设备的位置。这就是我的项目的开始,共享他们所有的 GPS 位置,但是是实时的,尽可能接近。这个问题就像我的车没有轮子一样,在我开始之前它就阻止了我。
但如何在所有设备之间进行通信是我现在的问题
Right first time use, be gentle.
Part of a year long college project, looking for help in the right direction.
Sending/receiving GPS coordinates in realtime(as near as possible) with iPhone 4's
Whats the best approach, was looking at GameKit Q&A here for communicating between phones but am i right in saying it works only on bt and wifi? No good to me iPhones will be out and about.
From what i know, Java RMI would fit this problem lovely but thats Java :-( Send the coordinates and then have a Server Callback to multiple phones.
A server would be nice in the middle
What is the best approach when dealing with iOS?
Cheers
extra edit:
each of the 20 devices have to know the location of all others. thats the start of my project, the sharing of all their gps locations but in real time, as near as. this problem is like having no wheels on my car its stopping me befor i get started.
but how to communicate between all devices is my problem for now
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不完全确定您想要做什么,但在服务器上存储内容的最简单方法是基本的 Web 请求。 (如果您需要更多的复杂性,您还可以使用 Web 服务)
(您可以使用 html 请求进一步简化它,即 get 请求: http://mydomain.com/page/default.aspx?gpsdata=blah&OtherData=blah)
然后从服务器到另一个服务器进行通信iPhone,请查看 Apple 推送通知服务。
但根据您的项目,也许也可以选择通过 Web 服务与服务器进行通信(也就是说,如果仅在应用程序运行时与其他手机进行通信)。
请注意,如果您不使用网络服务器,那么这些建议不会很有用或不适用,在这种情况下,请进一步解释一下您想要使用哪些技术。
Not entirely certain what your trying to do, but the simplest way of storing something on a server would be a basic web request. (If you need more complexity, you can also use web services)
(You could possible dumb it down further with a html request, ie a get request: http://mydomain.com/page/default.aspx?gpsdata=blah&OtherData=blah)
Then to communicate from the server to the other iPhones, look into the Apple Push Notification services.
But depending on your project, maybe communicating with the server via web services may be an option also (that is, if communications occur with other phones only when the app is running).
Note, if you are not using a web server, then these suggestions will not be very useful or applicable, in that case, please explain a bit futher what technologies you want to use.