【问题标题】:Get coordinates for highway kilometers in Germany获取德国高速公路公里的坐标
【发布时间】:2015-09-18 10:10:39
【问题描述】:

有没有办法获得德国高速公路公里的 LON/LAT 坐标?我正在 Mapbox API 中寻找搜索字符串

i.e.: Autobahn A5, Kilometer 214 ==> bab+5+km+213+DE

https://api.mapbox.com/v4/geocode/mapbox.places/bab+5+km+213+DE.json?access_token=TOKEN

【问题讨论】:

  • 抱歉,公里坐标对我来说完全没有意义,除此之外,您的问题可能真的需要一些工作,请参阅:stackoverflow.com/help/how-to-ask
  • @iH8 其实我认为这是一个很好用的问题

标签: openstreetmap mapbox


【解决方案1】:

假设在高速公路上有公里标记的用例是如果它与上面的某些交换相关联,则一般绕过:假设我们没有这样易于使用的易于使用的 Web API。所以我们需要建立我们的“反向地理编码器”,从高速公路上的公里标记到它的纬度/经度。

我们总是有来自流行的 GIS API(谷歌地图等)的 Interchanges 坐标,当然我们可以订购它们。

关键点:为了在 2 个相邻的立交桥之间行驶,任何合适的路由网络服务算法(Google 地图方向等)将始终引导您在该高速公路上行驶。这是合乎逻辑的......(使用“最短路线”之类的参数,以防交通繁忙,它会尝试重定向你)。

我的建议是:

Let the first Interchange of the highway to be 0 K.
Ask for directions to the second interchange - 
You will get the distance - so you know what is the km mark for the second interchange.
And so on to cover the highway until the km point you need.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-02-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多