[GraphHopper] multiple encodings error

Peter K peathal at yahoo.de
Fri Dec 6 11:44:01 UTC 2013


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,
>
>





More information about the GraphHopper mailing list