[GraphHopper] multiple encodings error

Peter K peathal at yahoo.de
Fri Dec 6 12:10:32 UTC 2013


added it in the change logs:

https://github.com/graphhopper/graphhopper/blob/master/core/files/changelog.txt

Regards,
Peter.

>> But it was apparently not required before, so I guess the default somehow changed.
>
> ah, yes. this is true. the defaults for API and via config.properties
> were inconsistent.
>
>
>> Thanks for your answer I didn't see this anywhere on the doc, may be I missed it.
>
> Feel free to add this. Maybe here?
> https://github.com/graphhopper/graphhopper/wiki/Developers
>
> Regards,
> Peter.
>
>
>> 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
>> <mailto: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
>>     <mailto: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 <mailto:GraphHopper at openstreetmap.org>
>>     https://lists.openstreetmap.org/listinfo/graphhopper
>>
>>
>>
>>
>> _______________________________________________
>> GraphHopper mailing list
>> GraphHopper at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/graphhopper
>
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
>





More information about the GraphHopper mailing list