<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Salim,<br>
<br>
not sure what is the cause, as highway="residential" are
recognized since the early days, I think.<br>
<br>
You can try to build the core for the master branch and then use
that jar for Android (be sure you 'git checkout master' there
too).<br>
<br>
Then you'll need to rebuild all your graphhopper files to use the
latest file version:<br>
rm -rf your-area-gh<br>
./run.sh your-area.osm<br>
<br>
<span style="font-family:arial,sans-serif;font-size:13px">> i
do that because </span><font face="arial, sans-serif">because if
I don't do this I get a message that tells me to use the class
LevelGraphStorage</font><br>
<br>
in the MainActivity (Android side) you can choose the format
you've generated:<br>
<br>
hopper.contractionHierarchies(true) // LevelGraphstorage, from <span
style="font-family:arial,sans-serif;font-size:13px">osmreader.chShortcuts=</span><span
style="font-family:arial,sans-serif;font-size:13px">fastest</span><br>
hopper.contractionHierarchies(false) // Graphstorage<br>
<br>
In future versions probably an autodiscovery of the type is needed
(?)<br>
<br>
Regards,<br>
Peter.<br>
<br>
</div>
<blockquote
cite="mid:CABam8TCThQmeOdUdvY=oQrLVyABs=Rd229R2XcG5eQLPFcQ=XA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Peter, thanks fr your answer ,
<div><br>
<div style=""><span
style="font-family:arial,sans-serif;font-size:13px">>
Change the line "#osmreader.chShortcuts=</span><span
style="font-family:arial,sans-serif;font-size:13px">fastest|shortest"
to</span><br
style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">"osmreader.chShortcuts=</span><span
style="font-family:arial,sans-serif;font-size:13px">fastest"
in the file</span><br>
</div>
</div>
<div style=""><span
style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div style=""><span
style="font-family:arial,sans-serif;font-size:13px">i do
that because </span><font face="arial, sans-serif">because
if I don't do this I get a message that tells me to use the
class LevelGraphStorage when I saw the code of
OSMReader.java I found it necessary to activate the class
osmreader.chShortcuts in order to use LevelGraphStorage
instead of GraphStorage, otherwise I have no interest to
make this adjustment.</font></div>
<div style=""><font face="arial, sans-serif"><br>
</font></div>
<div style=""><font face="arial, sans-serif">I dont need a
desktop version but i need an offline version for android. I
tested the android app & the graph is loaded normally,
but the roads given are wrong, when i saw the osm file i
noticed that the ways with the attribute
highway="residential" for example aren't taken into
consideration by the routing process. Is there a way to fix
that??</font></div>
<div style=""><font face="arial, sans-serif"><br>
</font></div>
<div style=""><font face="arial, sans-serif">When i tested the
master version with UI , i saw that the routes are correct
!, and all ways are taken into consideration, i need the
same result on the android app. Thanks in advance for your
support</font></div>
<div style=""><font face="arial, sans-serif"><br>
</font></div>
<div style=""><font face="arial, sans-serif"><br>
</font></div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/4/7 <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:graphhopper-request@openstreetmap.org"
target="_blank">graphhopper-request@openstreetmap.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Send
GraphHopper mailing list submissions to<br>
<a moz-do-not-send="true"
href="mailto:graphhopper@openstreetmap.org">graphhopper@openstreetmap.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a moz-do-not-send="true"
href="http://lists.openstreetmap.org/listinfo/graphhopper"
target="_blank">http://lists.openstreetmap.org/listinfo/graphhopper</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a moz-do-not-send="true"
href="mailto:graphhopper-request@openstreetmap.org">graphhopper-request@openstreetmap.org</a><br>
<br>
You can reach the person managing the list at<br>
<a moz-do-not-send="true"
href="mailto:graphhopper-owner@openstreetmap.org">graphhopper-owner@openstreetmap.org</a><br>
<br>
When replying, please edit your Subject line so it is more
specific<br>
than "Re: Contents of GraphHopper digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: GraphHopper Digest, Vol 2, Issue 2 (Salim Koumad)<br>
2. Re: GraphHopper Digest, Vol 2, Issue 2 (Peter K)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 6 Apr 2013 16:15:02 +0100<br>
From: Salim Koumad <<a moz-do-not-send="true"
href="mailto:koumad.salim@gmail.com">koumad.salim@gmail.com</a>><br>
To: <a moz-do-not-send="true"
href="mailto:graphhopper@openstreetmap.org">graphhopper@openstreetmap.org</a><br>
Subject: Re: [GraphHopper] GraphHopper Digest, Vol 2, Issue
2<br>
Message-ID:<br>
<<a moz-do-not-send="true"
href="mailto:CABam8TBGkj9aGL2-H4G9A5LUj2sVUc0RtCzLAwD0zxG5Ot3KKg@mail.gmail.com">CABam8TBGkj9aGL2-H4G9A5LUj2sVUc0RtCzLAwD0zxG5Ot3KKg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Ok! i fixed my problem with this steps:<br>
1 - Download the graphhopper 0.1 repository,<br>
<a moz-do-not-send="true"
href="https://github.com/graphhopper/graphhopper/tree/0.1"
target="_blank">https://github.com/graphhopper/graphhopper/tree/0.1</a>
(because the master<br>
version doesn't<br>
work).<br>
2 - Change the line
"#osmreader.chShortcuts=fastest|shortest" to<br>
"osmreader.chShortcuts=fastest" in the file<br>
..\graphhopper-0.1\config.properties".<br>
3 - ./run.sh your_osm_file.osm.<br>
<br>
But now i have another problem, with this version , run.sh
with ui option<br>
doesn't work ! it gives me this message:<br>
" Exception in thread "AWT-EventQueue-0"
java.lang.IllegalStateException:<br>
You'll n<br>
eed to change weightCalculation of preparation instead of
algorithm!"<br>
<br>
<br>
2013/4/6 <<a moz-do-not-send="true"
href="mailto:graphhopper-request@openstreetmap.org">graphhopper-request@openstreetmap.org</a>><br>
<br>
> Send GraphHopper mailing list submissions to<br>
> <a moz-do-not-send="true"
href="mailto:graphhopper@openstreetmap.org">graphhopper@openstreetmap.org</a><br>
><br>
> To subscribe or unsubscribe via the World Wide Web,
visit<br>
> <a moz-do-not-send="true"
href="http://lists.openstreetmap.org/listinfo/graphhopper"
target="_blank">http://lists.openstreetmap.org/listinfo/graphhopper</a><br>
> or, via email, send a message with subject or body
'help' to<br>
> <a moz-do-not-send="true"
href="mailto:graphhopper-request@openstreetmap.org">graphhopper-request@openstreetmap.org</a><br>
><br>
> You can reach the person managing the list at<br>
> <a moz-do-not-send="true"
href="mailto:graphhopper-owner@openstreetmap.org">graphhopper-owner@openstreetmap.org</a><br>
><br>
> When replying, please edit your Subject line so it is
more specific<br>
> than "Re: Contents of GraphHopper digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
> 1. copying myosmfile-gh in android doesn't work !
help !<br>
> (Salim Koumad)<br>
><br>
><br>
>
----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Sat, 6 Apr 2013 12:00:12 +0100<br>
> From: Salim Koumad <<a moz-do-not-send="true"
href="mailto:koumad.salim@gmail.com">koumad.salim@gmail.com</a>><br>
> To: <a moz-do-not-send="true"
href="mailto:graphhopper@openstreetmap.org">graphhopper@openstreetmap.org</a><br>
> Subject: [GraphHopper] copying myosmfile-gh in android
doesn't work !<br>
> help !<br>
> Message-ID:<br>
> <<br>
> <a moz-do-not-send="true"
href="mailto:CABam8TDqKf_CN_K_XME_WFOgDDP0BFkMGJREOTUSWai-xr0TQg@mail.gmail.com">CABam8TDqKf_CN_K_XME_WFOgDDP0BFkMGJREOTUSWai-xr0TQg@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
> I'm trying to use the demo app, i downloaded my own osm
file, i used the<br>
> run.sh script to create the graph (it ran with the ui),
i also created the<br>
> .map file from the same osm file with osmosis and
writer plugin. I putted<br>
> the myosm-gh folder (with .map of course) in
/sdcard/graphhopper/maps/ ,<br>
> when i try to use this map a toast appears with the
following message: "An<br>
> error happend while creating graph: Couldn't load load
storage at<br>
> /mnt/sdcard/graphhopper/maps/myosm-gh. ". I'm very
confused because when i<br>
> tried for first time with the berlin.ghz default file
it worked fine!. I<br>
> saw that the content of my gh folder is different from
the folder berlin-gh<br>
> which worked ... , my folder contains 4 files :<br>
> edges, geometry, nodes, spatialNIndex.<br>
> the berlin default folder contains:<br>
> egdes (not edges is it normal? !), geometry, nodes,
loc2idIndex<br>
> i don't understand why the run script give me different
files ... I<br>
> followed all steps in the wiki page . I also checked
out the version 0.1<br>
> ... thanks<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a moz-do-not-send="true"
href="http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130406/c9539886/attachment-0001.html"
target="_blank">http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130406/c9539886/attachment-0001.html</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> _______________________________________________<br>
> GraphHopper mailing list<br>
> <a moz-do-not-send="true"
href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
> <a moz-do-not-send="true"
href="http://lists.openstreetmap.org/listinfo/graphhopper"
target="_blank">http://lists.openstreetmap.org/listinfo/graphhopper</a><br>
><br>
><br>
> End of GraphHopper Digest, Vol 2, Issue 2<br>
> *****************************************<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a moz-do-not-send="true"
href="http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130406/39066bb1/attachment-0001.html"
target="_blank">http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130406/39066bb1/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 06 Apr 2013 21:23:03 +0200<br>
From: Peter K <<a moz-do-not-send="true"
href="mailto:peathal@yahoo.de">peathal@yahoo.de</a>><br>
To: <a moz-do-not-send="true"
href="mailto:graphhopper@openstreetmap.org">graphhopper@openstreetmap.org</a><br>
Subject: Re: [GraphHopper] GraphHopper Digest, Vol 2, Issue
2<br>
Message-ID: <<a moz-do-not-send="true"
href="mailto:51607617.90405@yahoo.de">51607617.90405@yahoo.de</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Hi Salim,<br>
<br>
thanks for your report!<br>
<br>
> because the master version doesn't work<br>
<br>
the file layout of master is incompatible with 0.1<br>
<br>
<br>
> Change the line
"#osmreader.chShortcuts=fastest|shortest" to<br>
"osmreader.chShortcuts=fastest" in the file<br>
<br>
This settings specifies "use contraction hierarchies" with
"fastest CAR"<br>
weighting.<br>
<br>
<br>
> But now i have another problem, with this version ,
run.sh with ui<br>
option doesn't work ! it gives me this message:<br>
<br>
You can easily ignore that message. the ui is not really
intended for<br>
production use. I'll probably remove that in the near
future.<br>
<br>
Try the android project which uses mapsforge or the web
project which<br>
uses map tiles.<br>
If you need an offline version for the desktop there will be
one with<br>
the mapsforge 'rewrite' branch in the near future.<br>
<br>
Regards,<br>
Peter.<br>
<br>
> Ok! i fixed my problem with this steps:<br>
> 1 - Download the graphhopper 0.1<br>
> repository, <a moz-do-not-send="true"
href="https://github.com/graphhopper/graphhopper/tree/0.1"
target="_blank">https://github.com/graphhopper/graphhopper/tree/0.1</a>
(because<br>
> the master version doesn't<br>
> work).<br>
> 2 - Change the line
"#osmreader.chShortcuts=fastest|shortest" to<br>
> "osmreader.chShortcuts=fastest" in the file<br>
> ..\graphhopper-0.1\config.properties".<br>
> 3 - ./run.sh your_osm_file.osm.<br>
><br>
> But now i have another problem, with this version ,
run.sh with ui<br>
> option doesn't work ! it gives me this message:<br>
> " Exception in thread "AWT-EventQueue-0"<br>
> java.lang.IllegalStateException: You'll n<br>
> eed to change weightCalculation of preparation
instead of algorithm!"<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
GraphHopper mailing list<br>
<a moz-do-not-send="true"
href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a moz-do-not-send="true"
href="http://lists.openstreetmap.org/listinfo/graphhopper"
target="_blank">http://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br>
<br>
End of GraphHopper Digest, Vol 2, Issue 3<br>
*****************************************<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstreetmap.org/listinfo/graphhopper">http://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
GraphHopper.com Your way is our destination!</pre>
</body>
</html>