@@ -11,7 +11,7 @@ GraphHopper hopper = new GraphHopperOSM().forServer();
11
11
hopper. setDataReaderFile(osmFile);
12
12
// where to store graphhopper files?
13
13
hopper. setGraphHopperLocation(graphFolder);
14
- hopper. setEncodingManager(new EncodingManager (" car" ));
14
+ hopper. setEncodingManager(EncodingManager . create (" car" ));
15
15
16
16
// now this can take minutes if it imports or a few seconds for loading
17
17
// of course this is dependent on the area you import
@@ -60,7 +60,7 @@ config.yml `prepare.ch.weightings=no`) or on a per request base by adding `ch.di
60
60
(see config.yml ` prepare.lm.weightings=fastest ` ).
61
61
62
62
If you need multiple vehicle profiles you can specify a list of vehicle profiles (see
63
- config.yml e.g. ` graph.flag_encoders=car,bike ` or use ` new EncodingManager("car,bike")` ).
63
+ config.yml e.g. ` graph.flag_encoders=car,bike ` or use ` EncodingManager.create ("car,bike") ` ).
64
64
65
65
To calculate a route you have to pick one vehicle and optionally an algorithm like ` bidirectional_astar ` :
66
66
@@ -69,7 +69,7 @@ GraphHopper hopper = new GraphHopperOSM().forServer();
69
69
hopper. setCHEnabled(false );
70
70
hopper. setOSMFile(osmFile);
71
71
hopper. setGraphHopperLocation(graphFolder);
72
- hopper. setEncodingManager(new EncodingManager (" car,bike" ));
72
+ hopper. setEncodingManager(EncodingManager . create (" car,bike" ));
73
73
74
74
hopper. importOrLoad();
75
75
0 commit comments