[OSM-dev] navigation/autorouting in josm

Christof Dallermassl cdaller.hw at gmx.at
Fri Jul 27 14:41:08 BST 2007


Hi!

you had the bad luck that I added a navigation mode yesterday (the 
arrival flag in the left toolbar) which allows you to set 
start/middle/end points (shown in a new layer). So do not select them, 
but switch to the navigation mode and click on the nodes. then use the 
menu to calculate the shortest path.

thanks for testing!
christof

P.S.: The weight printed is the distance in meters (only correct on 
equator or for streets north-south :-)

Ulf Lamping schrieb:
> Christof Dallermassl schrieb:
>> Hi!
>>
>> I added a (very basic) plugin for navigation (autorouting) to svn: 
>> http://svn.openstreetmap.org/applications/editors/josm/plugins/navigator/
>>   
> It makes testing much easier, when you put the .jar file into SVN as well.
>> I uses the jgrapht library to do a Shortest Path Algorithm (Dijkstra). 
>> So the plugin needs the library in ~/.josm/plugins/navigator/lib
>> The included build.xml file should do the install correctly (on linux 
>> systems) (call "ant install", needs adoption of path to josm (from 
>> "../JOSM" to whatever is apropriate)).
>>   
> It might be better, to put this lib into the navigator.jar (if possible) 
> so handling is easier.
> 
> "ant install" probably won't work on Win32, different APPDATA dir than UNIX
>> Usage: select two or more nodes and then select Navigation/Navigate in 
>> menu. 
> ... the nodes are unselected and nothing else happens!
> 
> That's what the console says:
> 
> navigate nodes
> shortest path found: [] weight: 0.0
> all added: 0.0
> 
> 
> Regards, ULFL

-- 
---------------------------------------------------------------------------
Christof Dallermassl
cdaller dot hw at gmx dot at
---------------------------------------------------------------------------




More information about the dev mailing list