Skip to content

Commit a98b744

Browse files
author
Peter
committed
better document fastest weighting setting
1 parent 70b2005 commit a98b744

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/core/quickstart-from-source.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,13 @@ file to point to the required graphhopper folder. Increase the Xmx/Xms values of
9494
for world wide coverage with a hierarchical graph I do the following in bin/jetty.sh
9595
```bash
9696
export JAVA=java-home/bin/java
97-
export JAVA_OPTIONS="-server -Xconcurrentio -Xmx15000m -Xms15000m"
97+
export JAVA_OPTIONS="-server -Xconcurrentio -Xmx17000m -Xms17000m"
9898
```
9999

100100
For [World-Wide-Road-Network](./world-wide.md) we have a separate information page.
101101

102102
Important notes:
103+
* jsonp support needs to be enabled in the config.properties
103104
* none-hierarchical graphs should be limited to a certain distance otherwise you'll require lots of RAM per request! See https://github.com/graphhopper/graphhopper/issues/104
104105
* if you have strange speed problems which could be related to low memory you can try to [entire disable swap](http://askubuntu.com/questions/103915/how-do-i-configure-swappiness). Or just try it out via `sudo swapoff -a`. Swapping out is very harmful to Java programs especially when the GC kicks in.
105106

docs/core/routing.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ hopper.setEncodingManager(new EncodingManager("car"));
1212
// of course this is dependent on the area you import
1313
hopper.importOrLoad();
1414

15-
GHRequest req = new GHRequest(latFrom, lonFrom, latTo, lonTo).setVehicle("car");
15+
// simple configuration of the request object, see the GraphHopperServlet classs for more possibilities.
16+
GHRequest req = new GHRequest(latFrom, lonFrom, latTo, lonTo).
17+
setWeighting("fastest").
18+
setVehicle("car");
1619
GHResponse rsp = hopper.route(req);
1720

1821
// first check for errors

0 commit comments

Comments
 (0)