Twitter 如何获取其地理位置数据?
我想知道是否有人知道 Twitter(或 Facebook)如何获取其地理位置数据,例如各种街道和可能的建筑物。 Twitter 似乎是从 Google 那里获得的,但有人知道如何设置它的任何资源吗?
谢谢! 马特·穆勒
I was wondering if anyone knew how Twitter (or facebook) gets its geolocation data, like the various streets and possible buildings. It seems like Twitter gets it from Google, but does anyone know of any resources on how to set that up?
Thanks!
Matt Mueller
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
谷歌似乎也没有从所有位置进行解析。至少这在库拉索似乎行不通。我正在研究一种更稳定的解决方案。 查看我的未决问题了解详细信息。如果你只想要谷歌,你可以使用这个。
包括
JS
Google doesn't parse from all locations either it seems. At least this seems not to work from Curacao. I'm working on a solution that is more stable. See my open question for details. If you just want google you can use this.
Include
JS
它通过 HTML5 Geolocation API 来实现,现在大多数现代技术都支持该 API浏览器。当然,由浏览器的接口实现来决定如何确定位置。手机的计算方式与台式机等的计算方式非常不同。例如,Firefox 使用 Google 网络服务 根据 IP 地址执行此操作,而 Mobile Safari 将使用核心位置。
将会出现快速 Google 搜索有关如何检测和使用该功能的大量信息。
It does it through the HTML5 Geolocation API that is now supported by most modern browsers. Of course it is up to the browser's implementation of the interface to decide how to determine the location. A cell phone will figure it out very differently from a desktop machine, etc. For instance, Firefox uses a Google web service to do it based on the IP address, while Mobile Safari would use Core Location.
A quick Google search will turn up lots of information how to detect and use the capability.