附近的公交信息(按纬度/经度)

发布于 2024-08-24 12:13:01 字数 57 浏览 6 评论 0原文

我有一个位置的纬度和经度,我想找到该位置附近的交通信息,就像谷歌在谷歌地图详细信息页面上的做法一样。

i have latitude and longitude of a location and i want to find nearby transit info of that location, just like how google does it on there google maps detail page.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

梦萦几度 2024-08-31 12:13:01

不幸的是,Google Transit 没有 API。您可能会抓取输出,但这可能会违反 Google 的服务条款。

有一些交通机构提供 API - 如果您想覆盖非常特定的区域,您可以直接前往。查看Programmable Web 的旅行类别

There is no API for Google Transit unfortunately. You could probably scrape the output but this would likely violate Google's Terms of Service.

There are a few Transit authorities who provide APIs - if you want to cover a very specific area you might be able to go direct. Have a look at Programmable Web's Travel category.

∞琼窗梦回ˉ 2024-08-31 12:13:01

司法管辖区将其交通信息以文本文件转发给 Google。然后谷歌将其添加到他们的地图中。我不确定 Google 地图高级 API 是否提供交通服务。您可能需要给他们发电子邮件并检查。

使用 Google 地图 API,您可以选择交通方式。我不确定这是否对你有帮助。我强烈建议您向地图 API 邮件列表发送电子邮件。你会得到更好的回应

Jurisdictions forward their transit information as text files to Google. Google then adds it to their maps. I'm not sure if transit is provided under the Google maps premium API. You might have to email them and check.

Using the google maps api, you can chose the method of transportation. I'm not sure if that'll help you or not. I strongly urge you to email the maps api mailing list. You'll get a better response

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