[GraphHopper] multiple encodings error
Ludwig
ludwigbrinckmann at gmail.com
Fri Dec 6 11:59:31 UTC 2013
I added that line to my config and now all seems ok.
But it was apparently not required before, so I guess the default somehow
changed.
Thanks for the quick response.
Ludwig
On 6 December 2013 19:44, Peter K <peathal at yahoo.de> wrote:
> No changes regarding this were introduced. You can use multiple vehicles
> if you do:
> prepare.chShortcuts=no
> (or equivalent via API)
>
> But if you want the faster response time (with CH == contraction
> hierarchies) you can use only one vehicle.
>
> Regards,
> Peter.
>
>
> >
> >
> > Ludwig <ludwigbrinckmann at gmail.com> writes:
> >
> >>
> >> I have just upgraded to the current head (I guess a little ahead of 0.2)
> >> and now, with everything else unchanged, I get the following error:
> >>
> >>
> >> Exception in thread "main" java.lang.IllegalStateException: multiple
> >> encoders are active. cannot return one:bike,car,foot
> >> at
> >>
> com.graphhopper.routing.util.EncodingManager.getSingle(EncodingManager.java:223)
> >> at com.graphhopper.GraphHopper.initCHPrepare(GraphHopper.java:542)
> >> at com.graphhopper.GraphHopper.postProcessing(GraphHopper.java:533)
> >> at com.graphhopper.GraphHopper.process(GraphHopper.java:444)
> >> at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:417)
> >> at com.graphhopper.GraphHopper.main(GraphHopper.java:46)
> >>
> >>
> >> My config file has the setting:
> >> # possible options: CAR,FOOT,BIKE (comma separated)
> >> osmreader.acceptWay=CAR,FOOT,BIKE
> >>
> >> which worked before.
> >>
> >> Are multiple encoders not supported any more?
> >
> >
> > Hi,
> >
> > I encounter the same problem. Using car,foto and bike alone allsworks
> > well but when using all three at same time it fails.
> >
> > Regards,
> >
> >
>
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20131206/c0767494/attachment.html>
More information about the GraphHopper
mailing list