[GraphHopper] Looking for an engine for horse (and hiking) routing
Peter K
peathal at yahoo.de
Sat May 25 14:47:06 UTC 2013
Hi Nop,
>> > Actually, understanding the test was the hardest part. :-)
>> Which one? Reading a test should be easier :) !
>
> I extended the oneWay test, but it's true for all of them. The test
> manually takes apart the Graph and that much harder to understand for
> me than the parsing code.
What do you mean with 'takes apart'?
> Due to the Maven setup I could run the tests, but not enter them with
> the debugger to have a closer look at what the data means.
What is so difficult with a maven setup? In NetBeans
running/debugging/profiling or even compile on save works out of the
box, just open the project!
and eclipse with some maven plugin should also be easy, but I don't know
eclipse enough to recommend a setup.
>> > But as I never looked at routing and don't have any way to visualize
>> > or check those routing tests, I can't fix the test cases. I guess I
>> > need your help for that.
>>
>> you can try the MiniGraphUI in the tools sub project (a raw desktop UI,
>> very good for visually debugging) or call
>
> It starts and shows a black mesh of lines.
zoom in/out via mouse wheel or drag and drop like with a normal map.
> I am not sure what it is supposed to do, but every time I click on it,
> I get a
> IllegalStateException: You'll need to change weightCalculation of
> preparation instead of algorithm!
> at
> com.graphhopper.routing.ch.PrepareContractionHierarchies$1.type(PrepareContractionHierarchies.java:614)
>
> I haven't changed anything yet, config is set to dikstrabi. What's wrong?
You are using a levelgraph. you need to change this to the unprepared
graph (in the config.properties -> chShortcuts=false).
Or just modify MiniGraphUI to your needs to avoid this exception
>> ./graphhopper.sh web <osm file>
>> and then access localhost:8989
>
> I'm working on windows, that does not work for me.
Why don't you try cygwin as suggested by Robert?
> I have donloaded jetty and it's running, but I have no idea how to put
> graphhopper and jetty together on windows. Can you explain to me
> what's required?
you can also try 'mvn jetty:run', no need to download jetty. if
everything fails you'll need to create a war file and deploy this to
tomcat or jetty, but this procedure is extremly slow.
And for the ease of development you should really make sure that you can
start the web service (and the import + miniUI) right from within your
IDE, to make debugging etc easier.
Regards,
Peter.
More information about the GraphHopper
mailing list