使用 PHP 从 ATOM 提要中提取数据并使用它反向查找坐标到实际地址

发布于 2024-09-02 10:01:51 字数 429 浏览 5 评论 0原文

基本上我有一个公共供稿: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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

樱桃奶球 2024-09-09 10:01:51

您可以向 Google 的地理编码 API 询问有关位置的信息。详细信息都在该链接中;您可以使用如下 URL:

http://maps .google.com/maps/api/geocode/xml?latlng=-31.774891,115.735698&sensor=false

您可能想要的值是 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:

http://maps.google.com/maps/api/geocode/xml?latlng=-31.774891,115.735698&sensor=false

The value that you probably want would be the formatted_address of 6 Seaside Gardens, Mullaloo WA 6027, Australia.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文