gpt4 book ai didi

iphone - 使用 Google map 的火车轨道路线

转载 作者:行者123 更新时间:2023-12-03 20:10:44 25 4
gpt4 key购买 nike

我想知道是否可以使用火车轨道在 map 上创建一条路线。我知道在普 channel 路上这是可能的。

最佳答案

这当然是可能的。 (从广义上讲,一切皆有可能):-)

您需要的第一件事是有关铁轨位置的数据。对于美国、加拿大和欧洲部分地区,这可以作为 shapefile 公开提供,例如: http://www.lib.unc.edu/reference/gis/datafinder/index.html?search_type=show_category_contents&datalayers=1&category_id=109

获得 shapefile 后,所有选项均已打开。您可以将线条转换为 google.maps.polyline() 对象(如果您使用的是 API V2,则为 GPolyline() 对象),并将其加载到 map 上。这完全取决于您想要实现的目标以及您使用的服务器端语言。获取铁路方向是完全不同的事情。 :-)

马塞洛。

关于iphone - 使用 Google map 的火车轨道路线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3247432/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com