Graphhopper,osmdroid用于osmdroid离线路由 [英] Graphhopper, osmdroid for osmdroid offline routing

查看:202
本文介绍了Graphhopper,osmdroid用于osmdroid离线路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用osmdroid和osm Bonus Pack(令人惊奇的libs)弄乱了一段时间,并且一直在思考离线路由和逐行导航的想法,现在,我还没有尝试过任何东西,但是在组合中加入Graphhopper听起来很有前途:

I have been messing around for a while with osmdroid and osm bonus pack(amazing libs!), and have been pondering on the idea of offline routing and turn by turn navigation, now, I haven't tried anything yet, but something sounds very promising in throwing graphhopper in on the mix:

Wiki的官方指南如下:

The official Wiki guide is as following:

  • 下载原始地图文件(.osm,.osm.pbf等).
  • 运行./graphhopper.sh导入map_file

现在,这是设计用来与MapsForge一起使用的,我还没有机会检出生成的.ghz文件,其中包含地图的路线数据,但是我的问题是,是否可以使用这个路由数据来构建OSM Bonus Pack中附带的PathOverlay对象,以实际绘制某种路由?

Now, this is designed to work with MapsForge, and I haven't had the chance to check out the resulting .ghz file, containing the routing data for the map, BUT my question is this, could it be possible to use this routing data to build a PathOverlay object coming in OSM Bonus Pack to actually draw routes of some kind?

我想知道是否有人已经尝试过这种东西并且对此有话要说,对您的帮助表示赞赏.

I wonder if someone already tried something of this sort and has something to say about it, any help appreciated.

推荐答案

在osmdroid中使用Mapsforge:圣杯,永无止境的故事...

Using Mapsforge in osmdroid: holy grail, never-ending story...

您可以查看以下(长)线程: https://groups.google.com/forum/#!topic/osmdroid/gSieR9BF_z0

You can have a look at this (long) thread: https://groups.google.com/forum/#!topic/osmdroid/gSieR9BF_z0

还有一个可行的实验: http://www.salidasoftware.com/how-to-render-mapsforge-tiles-in-osmdroid/

There is also this working experiment: http://www.salidasoftware.com/how-to-render-mapsforge-tiles-in-osmdroid/

现在,如果您确实需要离线路由,则可以选择:

Now, if you really NEED offline routing, your options are:

按照Karussell的建议,您离开osmdroid/OSMBonusPack并转到Graphhopper/Mapsforge =>,您会在 Graphhopper 网站.

You leave osmdroid/OSMBonusPack and move to Graphhopper/Mapsforge, as suggested by Karussell => you will find docs on Graphhopper web site.

或者您可以查看 OsmAnd .这是一个应用程序,不是lib.它具有自己的基于矢量的地图格式(和工具集),并提供脱机显示和脱机路由.

Or you can have a look at OsmAnd. This is an app, not a lib. It has its own vector-based maps format (and toolset) and provides offline display and offline routing.

或者您可以尝试到达圣杯,并合并Mapsforge,osmdroid,Graphhopper和OSMBonusPack ...

Or you can try to reach the holy grail, and merge Mapsforge, osmdroid, Graphhopper, and OSMBonusPack...

这篇关于Graphhopper,osmdroid用于osmdroid离线路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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