在OSM Magsforge(离线)地图上的点和路径之间的最短距离 [英] Shortest distance between point and path in OSM Magsforge (offline) map

查看:753
本文介绍了在OSM Magsforge(离线)地图上的点和路径之间的最短距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个App我加载OSM / Mapsforge离线地图。

In an App I load an OSM / Mapsforge offline map.

我如何确定一个坐标(航点)之间,并在Mapsforge文件中的最短距离最近的路径?我得到的信息是Mapsforge(离线)地图。

How can I determine the shortest distance between a coordinate (waypoint) and the nearest path in that Mapsforge file? The info I got is the Mapsforge (offline) map.

对不起 - 重新发布此 - 我现在知道我必须使用Graphhopper标签

Sorry - to repost this - I now know I have to use the "Graphhopper" tag!

推荐答案

通过mapsforge你不能做到这一点。你必须使用一个路由库像graphhopper之一。在这里看到如何使用它: http://graphhopper.com/#developers

With mapsforge you cannot do this. You have to use a routing library like graphhopper is one. See here how to use it: http://graphhopper.com/#developers.

但也有其他离线和在线的路由器也是如此。这里有一个看看: http://wiki.openstreetmap.org/wiki/Routing/offline_routers这里 http://wiki.openstreetmap.org/wiki/Routing

But there are other offline and online routers as well. Have a look here: http://wiki.openstreetmap.org/wiki/Routing/offline_routers and here http://wiki.openstreetmap.org/wiki/Routing

这篇关于在OSM Magsforge(离线)地图上的点和路径之间的最短距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆