如何为 iPhone 设计与自己的 RoR 网站集成的位置数据应用程序
简单概念:在用户当前位置上绘制其附近特定兴趣点的地图。
详细信息: 我有我自己的地图混搭网站,为人们提供搜索服务 > 以及贡献雪橇山的 GPS 位置数据。
现在我需要为该网站构建一个配套的 iPhone 应用程序。
我的挑战:我恳请您提供意见,了解哪种 API 工具/设计最适合此任务?
我知道核心位置框架。但我不知道如何最好地从我自己的 Rails 网站获取位置数据点列表。 (我没有对网站进行编码,它是外包的)
我需要向 Rails 团队解释任何网站更改。以及自己弄清楚 iPhone 部分。
理想情况下,我想象一个协议,要求服务器只向我提供 iPhone 所在的特定 GPS 半径内的位置点列表。
这可能吗?这会对服务器造成太大负担吗?
下载整个世界范围内的山丘列表,然后在 iPhone 上过滤“可见”的山丘,这似乎效率很低。
其他应用程序是如何做到的?
谢谢。
Simple concept: Map users current location with specific points of interest around their vicinity.
Details:
I have my own map mash-up web site, that provides a service for people to search for as well as contribute GPS location data of toboggan hills.
Now I need to build a companion iPhone app for the site.
My Challenge: I'm kindly asking for input as to which API tools/design best suit this task?
I'm aware of the Core Location Framework. But am ignorant of how best to go about getting my list of location data points from my own Rails web site. (I didn't code the web site, it was outsourced)
I'll need to explain this to the rails team for any site changes. As well as figure out for myself the iPhone portion.
Ideally, I'm imagining a protocol where I ask the server to only give me the list of location points within a certain GPS radius that the iPhone is in.
Is that possible? Will that tax the server too much?
Downloading the entire world-wide list of hills and then filtering on the iPhone for just the ones 'in view' seems inefficient.
How do other apps do it?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你正在走正确的道路。简而言之,您想要:
您的问题是,如果您想要将 POI 信息存储在设备上,或者如果您想每次都获取最新信息。
You are going down the correct path. In a nutshell you want to:
The question you have, is if you want to store the POI info on the device or if you want to get it fresh every time.