[GraphHopper] GraphHopper Digest, Vol 2, Issue 3
Peter K
peathal at yahoo.de
Mon Apr 8 11:18:26 UTC 2013
Hi Salim,
not sure what is the cause, as highway="residential" are recognized
since the early days, I think.
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).
Then you'll need to rebuild all your graphhopper files to use the latest
file version:
rm -rf your-area-gh
./run.sh your-area.osm
> i do that because because if I don't do this I get a message that tells
me to use the class LevelGraphStorage
in the MainActivity (Android side) you can choose the format you've
generated:
hopper.contractionHierarchies(true) // LevelGraphstorage, from
osmreader.chShortcuts=fastest
hopper.contractionHierarchies(false) // Graphstorage
In future versions probably an autodiscovery of the type is needed (?)
Regards,
Peter.
> Hi Peter, thanks fr your answer ,
>
> > Change the line "#osmreader.chShortcuts=fastest|shortest" to
> "osmreader.chShortcuts=fastest" in the file
>
> i do that because 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.
>
> 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??
>
> 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
>
>
>
>
> 2013/4/7 <graphhopper-request at openstreetmap.org
> <mailto:graphhopper-request at openstreetmap.org>>
>
> Send GraphHopper mailing list submissions to
> graphhopper at openstreetmap.org
> <mailto:graphhopper at openstreetmap.org>
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.openstreetmap.org/listinfo/graphhopper
> or, via email, send a message with subject or body 'help' to
> graphhopper-request at openstreetmap.org
> <mailto:graphhopper-request at openstreetmap.org>
>
> You can reach the person managing the list at
> graphhopper-owner at openstreetmap.org
> <mailto:graphhopper-owner at openstreetmap.org>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of GraphHopper digest..."
>
>
> Today's Topics:
>
> 1. Re: GraphHopper Digest, Vol 2, Issue 2 (Salim Koumad)
> 2. Re: GraphHopper Digest, Vol 2, Issue 2 (Peter K)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 6 Apr 2013 16:15:02 +0100
> From: Salim Koumad <koumad.salim at gmail.com
> <mailto:koumad.salim at gmail.com>>
> To: graphhopper at openstreetmap.org
> <mailto:graphhopper at openstreetmap.org>
> Subject: Re: [GraphHopper] GraphHopper Digest, Vol 2, Issue 2
> Message-ID:
>
> <CABam8TBGkj9aGL2-H4G9A5LUj2sVUc0RtCzLAwD0zxG5Ot3KKg at mail.gmail.com <mailto:CABam8TBGkj9aGL2-H4G9A5LUj2sVUc0RtCzLAwD0zxG5Ot3KKg at mail.gmail.com>>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Ok! i fixed my problem with this steps:
> 1 - Download the graphhopper 0.1 repository,
> https://github.com/graphhopper/graphhopper/tree/0.1 (because the
> master
> version doesn't
> work).
> 2 - Change the line "#osmreader.chShortcuts=fastest|shortest" to
> "osmreader.chShortcuts=fastest" in the file
> ..\graphhopper-0.1\config.properties".
> 3 - ./run.sh your_osm_file.osm.
>
> But now i have another problem, with this version , run.sh with ui
> option
> doesn't work ! it gives me this message:
> " Exception in thread "AWT-EventQueue-0"
> java.lang.IllegalStateException:
> You'll n
> eed to change weightCalculation of preparation instead of
> algorithm!"
>
>
> 2013/4/6 <graphhopper-request at openstreetmap.org
> <mailto:graphhopper-request at openstreetmap.org>>
>
> > Send GraphHopper mailing list submissions to
> > graphhopper at openstreetmap.org
> <mailto:graphhopper at openstreetmap.org>
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > http://lists.openstreetmap.org/listinfo/graphhopper
> > or, via email, send a message with subject or body 'help' to
> > graphhopper-request at openstreetmap.org
> <mailto:graphhopper-request at openstreetmap.org>
> >
> > You can reach the person managing the list at
> > graphhopper-owner at openstreetmap.org
> <mailto:graphhopper-owner at openstreetmap.org>
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of GraphHopper digest..."
> >
> >
> > Today's Topics:
> >
> > 1. copying myosmfile-gh in android doesn't work ! help !
> > (Salim Koumad)
> >
> >
> >
> ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Sat, 6 Apr 2013 12:00:12 +0100
> > From: Salim Koumad <koumad.salim at gmail.com
> <mailto:koumad.salim at gmail.com>>
> > To: graphhopper at openstreetmap.org
> <mailto:graphhopper at openstreetmap.org>
> > Subject: [GraphHopper] copying myosmfile-gh in android doesn't
> work !
> > help !
> > Message-ID:
> > <
> >
> CABam8TDqKf_CN_K_XME_WFOgDDP0BFkMGJREOTUSWai-xr0TQg at mail.gmail.com
> <mailto:CABam8TDqKf_CN_K_XME_WFOgDDP0BFkMGJREOTUSWai-xr0TQg at mail.gmail.com>>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > I'm trying to use the demo app, i downloaded my own osm file, i
> used the
> > run.sh script to create the graph (it ran with the ui), i also
> created the
> > .map file from the same osm file with osmosis and writer plugin.
> I putted
> > the myosm-gh folder (with .map of course) in
> /sdcard/graphhopper/maps/ ,
> > when i try to use this map a toast appears with the following
> message: "An
> > error happend while creating graph: Couldn't load load storage at
> > /mnt/sdcard/graphhopper/maps/myosm-gh. ". I'm very confused
> because when i
> > tried for first time with the berlin.ghz default file it worked
> fine!. I
> > saw that the content of my gh folder is different from the
> folder berlin-gh
> > which worked ... , my folder contains 4 files :
> > edges, geometry, nodes, spatialNIndex.
> > the berlin default folder contains:
> > egdes (not edges is it normal? !), geometry, nodes, loc2idIndex
> > i don't understand why the run script give me different files ... I
> > followed all steps in the wiki page . I also checked out the
> version 0.1
> > ... thanks
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <
> >
> http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130406/c9539886/attachment-0001.html
> > >
> >
> > ------------------------------
> >
> > _______________________________________________
> > GraphHopper mailing list
> > GraphHopper at openstreetmap.org <mailto:GraphHopper at openstreetmap.org>
> > http://lists.openstreetmap.org/listinfo/graphhopper
> >
> >
> > End of GraphHopper Digest, Vol 2, Issue 2
> > *****************************************
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130406/39066bb1/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 06 Apr 2013 21:23:03 +0200
> From: Peter K <peathal at yahoo.de <mailto:peathal at yahoo.de>>
> To: graphhopper at openstreetmap.org
> <mailto:graphhopper at openstreetmap.org>
> Subject: Re: [GraphHopper] GraphHopper Digest, Vol 2, Issue 2
> Message-ID: <51607617.90405 at yahoo.de <mailto:51607617.90405 at yahoo.de>>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Salim,
>
> thanks for your report!
>
> > because the master version doesn't work
>
> the file layout of master is incompatible with 0.1
>
>
> > Change the line "#osmreader.chShortcuts=fastest|shortest" to
> "osmreader.chShortcuts=fastest" in the file
>
> This settings specifies "use contraction hierarchies" with
> "fastest CAR"
> weighting.
>
>
> > But now i have another problem, with this version , run.sh with ui
> option doesn't work ! it gives me this message:
>
> You can easily ignore that message. the ui is not really intended for
> production use. I'll probably remove that in the near future.
>
> Try the android project which uses mapsforge or the web project which
> uses map tiles.
> If you need an offline version for the desktop there will be one with
> the mapsforge 'rewrite' branch in the near future.
>
> Regards,
> Peter.
>
> > Ok! i fixed my problem with this steps:
> > 1 - Download the graphhopper 0.1
> > repository, https://github.com/graphhopper/graphhopper/tree/0.1
> (because
> > the master version doesn't
> > work).
> > 2 - Change the line "#osmreader.chShortcuts=fastest|shortest" to
> > "osmreader.chShortcuts=fastest" in the file
> > ..\graphhopper-0.1\config.properties".
> > 3 - ./run.sh your_osm_file.osm.
> >
> > But now i have another problem, with this version , run.sh with ui
> > option doesn't work ! it gives me this message:
> > " Exception in thread "AWT-EventQueue-0"
> > java.lang.IllegalStateException: You'll n
> > eed to change weightCalculation of preparation instead of
> algorithm!"
>
>
>
>
> ------------------------------
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org <mailto:GraphHopper at openstreetmap.org>
> http://lists.openstreetmap.org/listinfo/graphhopper
>
>
> End of GraphHopper Digest, Vol 2, Issue 3
> *****************************************
>
>
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/graphhopper
--
GraphHopper.com Your way is our destination!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130408/6aebbfec/attachment-0001.html>
More information about the GraphHopper
mailing list