使用 PHP 从 ATOM 提要中提取数据并使用它反向查找坐标到实际地址
基本上我有一个公共供稿:http:// www.google.com/latitude/apps/badge/api?user=-1671995934285587708&type=atom
如果您转到我的 Google 个人资料,您可以看到上面写着:“Gareth 位于 6 Seaside Gardens, Mullaloo WA 6027 , 澳大利亚(1 分钟前)" google.com/profiles/Gareth.B.Hall
如何使用 PHP 在网站上显示我的位置,就像在我的 Google 个人资料上显示的那样?
谢谢
Basically I have a public feed: http://www.google.com/latitude/apps/badge/api?user=-1671995934285587708&type=atom
If you go to my Google Profile you can see it says: "Gareth is in 6 Seaside Gardens, Mullaloo WA 6027, Australia (1 minute ago)" google.com/profiles/Gareth.B.Hall
How can I, using PHP, display my location on a website the same way it's displayed on my Google Profile?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以向 Google 的地理编码 API 询问有关位置的信息。详细信息都在该链接中;您可以使用如下 URL:
您可能想要的值是
6 Seaside Gardens 的
。formatted_address
, Mullaloo WA 6027,澳大利亚You can ask Google's Geocoding API for information about the location. The details are all in that link; you could use an URL like:
The value that you probably want would be the
formatted_address
of6 Seaside Gardens, Mullaloo WA 6027, Australia
.