Skip to content

Commit 0f31a37

Browse files
author
Peter
committed
improved routing docs, graphhopper#347
1 parent e6c2e65 commit 0f31a37

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

docs/core/routing.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,12 @@ List<String> iList = il.createDescription(tr);
4646
List<GPXEntry> list = il.createGPXList();
4747
```
4848

49-
If you want to support multiple profiles you have to specify the default vehicle in order
50-
to pick the vehicle where contraction hierarchies will be enabled:
51-
```java
52-
GraphHopper hopper = new GraphHopper().forServer();
53-
hopper.setDefaultVehicle("car");
54-
...
55-
```
49+
The default is to use the speed-up mode for one profile. If you need multiple profiles you
50+
specify a list of profiles (e.g. car,bike) and the speed-up mode is applied to the first profile only (e.g. car).
51+
The other vehicles then use a more flexible routing.
5652

57-
If you want a more flexible routing (but slower) you can disable contraction hierarchies.
58-
Then pick one vehicle to route on and optionally the algorithm like 'bidirectional astar' as algorithm:
53+
You can also completely disable the speed-up mode to make all vehicles using the flexibility mode.
54+
Then pick one vehicle and optionally the algorithm like 'bidirectional astar' as algorithm:
5955

6056
```java
6157
GraphHopper hopper = new GraphHopper().forServer();

0 commit comments

Comments
 (0)