[Routing] monav, the very first try
feverzsj
feverzsj at hotmail.com
Wed Sep 1 15:42:47 BST 2010
hi, list
After struggling with qmake and pkgconfig for a long time, I found the
simplest way to get monav compiled under windows is directly importing
the .pro file into VS via qt vs addin or using qmake to generate the
vcproj(if your VS doesn't support addin). Then, add the dependencies,
correct the resource folder(vs doesn't understand link ../../images/),
change c99 feature(dynamic array) to c90, switch on openmp language
support of msvc, comment out qt mobile related code, and just build all.
I used the preprocessor to preprocess the china.osm downloaded from
http://downloads.cloudmade.com/asia/china#downloads_breadcrumbs. The
full preprocess(default setting) only took several minutes(the area is
not well mapped, so the dataset is relatively small). In the monav
client, the AddressLookup dialog is confusing at first sight, which is
mainly because of the area contains lots of nations and languages, and
the osm importer seems to just import same name tag.
The routing is blazingly fast! Faster than most desktop/mobile routing
engines I've ever tried, except the feature is still simple(only several
weights:"oneway" "speed" are involved?). I set the source around "上海市
" -> "City Center" and target around "北京市" -> "City Center", the
routing was immediately displayed on the map and the result seems to be
what it should be (screenshot:
http://fastfreefilehosting.com/file/45116/shanghai-to-beijing-jpg.html).
Then I exchanged the source and target, but the result became some kinda
"longest" route between two point(screenshot:
http://FastFreeFileHosting.com/file/45117/beijing-to-shanghai-jpg.html).
So, I repreprocessed the osm file with oneway tag ignored, and got the
similar result as first route. That somehow confuses me. The main links
between shanghai and beijing are motoway like
http://www.openstreetmap.org/browse/way/65066620, and both cities should
be well mapped.
I'd say monav is promising for fast(yet simple) routing and low ram
usage. I'd also expect features like routing by lat/lon and reverse
geocoding.
--Regards, zsj
More information about the Routing
mailing list