Hey greg; You can create directional edges; and make use of that information when navigating. You can create an edge in each direciton that can be navigated (and then just use dijkstra's as written) I seem to recall a couple of classes in there that can be used for this kind of thing ...
_greg wrote: > Hi all! > > I am starting to use geotools for my project and by now I have created > working example that returns shortest path from point A to B for a given > graph - I am using FeatureGraphGenerator. > > Now, my question is, how to create shortest path by using restrictions / > constraints such as: one way street, directed roads, speed limits, roads > that you can not use with a car, ... etc? I have all this information. I > have to somehow "teach" dijkstra that will use this data. How? > > Do I have to use BasicDirectedLineGraphGenerator ? > Is this done just by properly setting up weights ? > > I've searched this forum and couldn't find good explanation of this. > > Any help and and/or pointing direction about the subject would be most > welcome. > > thx, > bye > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
