You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developing.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ The field `data-for-conversion` can be an arbitrary long set of features and nee
26
26
27
27
The policy itself offers a `operator()` accepting a `vector` of `NodeID`.
28
28
29
-
For outputting data into our file (debug.geojson), we simply need to call the matching logging routine of the guard: `util::ScioedGeojsonLoggerGuard<util::NodeIdVectorToLineString>::Write(list_of_node_ids);`
29
+
For outputting data into our file (debug.geojson), we simply need to call the matching logging routine of the guard: `util::ScopedGeojsonLoggerGuard<util::NodeIdVectorToLineString>::Write(list_of_node_ids);`
30
30
(or `guard.Write(list_of_node_ids)` if you created an instance).
31
31
32
32
### Possible Scopeguard Location
@@ -57,6 +57,6 @@ If we want to use the same policy for multiple files, we need to use different t
@@ -476,7 +476,7 @@ The returned path does not have to be the fastest one. As TSP is NP-hard it only
476
476
Note that all input coordinates have to be connected for the trip service to work.
477
477
478
478
```endpoint
479
-
GET /trip/v1/{profile}/{coordinates}?roundtrip={true|false}&source{any|first}&destination{any|last}&steps={true|false}&geometries={polyline|polyline6|geojson}&overview={simplified|full|false}&annotations={true|false}'
479
+
GET /trip/v1/{profile}/{coordinates}?roundtrip={true|false}&source={any|first}&destination={any|last}&steps={true|false}&geometries={polyline|polyline6|geojson}&overview={simplified|full|false}&annotations={true|false}
480
480
```
481
481
482
482
In addition to the [general options](#general-options) the following options are supported for this service:
Copy file name to clipboardExpand all lines: docs/testing.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ OSRM comes with a testsuite containing both unit-tests using the Boost library a
4
4
5
5
## Unit Tests
6
6
7
-
For a general introduction on Boost.Test have a look at [its docs](http://www.boost.org/doc/libs/1_60_0/libs/test/doc/html/index.html).
7
+
For a general introduction on Boost.Test have a look at [its docs](https://www.boost.org/doc/libs/release/libs/test/doc/html/index.html).
8
8
9
9
### Separate Test Binaries
10
10
@@ -15,8 +15,8 @@ See `CMakeLists.txt` in the unit test directory for how to register new unit tes
15
15
### Using Boost.Test Primitives
16
16
17
17
There is a difference between only reporting a failed condition and aborting the test right at a failed condition.
18
-
Have a look at [`BOOST_CHECK` vs `BOOST_REQUIRE`](http://www.boost.org/doc/libs/1_60_0/libs/test/doc/html/boost_test/utf_reference/testing_tool_ref/assertion_boost_level.html).
19
-
Instead of manually checking e.g. for equality, less than, if a function throws etc. use their [corresponding Boost.Test primitives](http://www.boost.org/doc/libs/1_60_0/libs/test/doc/html/boost_test/utf_reference/testing_tool_ref.html).
18
+
Have a look at [`BOOST_CHECK` vs `BOOST_REQUIRE`](https://www.boost.org/doc/libs/release/libs/test/doc/html/boost_test/utf_reference/testing_tool_ref/assertion_boost_level.html).
19
+
Instead of manually checking e.g. for equality, less than, if a function throws etc. use their [corresponding Boost.Test primitives](https://www.boost.org/doc/libs/release/libs/test/doc/html/boost_test/utf_reference/testing_tool_ref.html).
20
20
21
21
If you use `BOOST_CHECK_EQUAL` you have to implement `operator<<` for your type so that Boost.Test can print mismatches.
22
22
If you do not want to do this, define `BOOST_TEST_DONT_PRINT_LOG_VALUE` (and undef it after the check call) or sidestep it with `BOOST_CHECK(fst == snd);`.
|`--profile <path>`|`-p`|`profiles/car.lua`| Path to the Lua routing profile. |
56
+
|`--output <path>`|`-o`| Derived from input filename | Base path for generated output files. |
57
+
|`--data_version <string>`|`-d`|_(none)_| Tag the dataset with a version string. Use `osmosis` to read the timestamp embedded in the PBF file. |
58
+
|`--small-component-size <n>`||`1000`| Minimum node count for a strongly-connected component to be treated as "large". Affects nearest-neighbor snapping. |
59
+
|`--with-osm-metadata`||| Parse OSM metadata (user, timestamp, etc.). May reduce extraction performance. |
60
+
|`--parse-conditional-restrictions`||| Save conditional turn restrictions to disk so they can be evaluated during contraction. |
61
+
|`--location-dependent-data <file>`||| GeoJSON files containing location-dependent data (e.g. speed limits by region). Repeatable. |
62
+
|`--disable-location-cache`||| Disable the internal node-location cache used for location-dependent data lookups. |
63
+
|`--dump-nbg-graph`||| Write the raw node-based graph to the `.osrm` file for debugging. |
64
+
65
+
---
66
+
67
+
## osrm-partition
68
+
69
+
Partitions the road network graph into a hierarchy of cells used by the
70
+
Multi-Level Dijkstra (MLD) algorithm.
71
+
72
+
```
73
+
osrm-partition <input.osrm> [options]
74
+
```
75
+
76
+
| Flag | Default | Description |
77
+
|------|---------|-------------|
78
+
|`--max-cell-sizes <list>`|`128,4096,65536,2097152`| Comma-separated maximum cell sizes per level, starting from level 1. The first value is also the bisection termination threshold. |
79
+
|`--balance <factor>`|`1.2`| Maximum allowed size ratio between the two sides of a single bisection. |
80
+
|`--boundary <fraction>`|`0.25`| Fraction of nodes to use as boundary sources/sinks during contraction. |
81
+
|`--optimizing-cuts <n>`|`10`| Number of candidate cuts evaluated when optimizing a single bisection. |
82
+
|`--small-component-size <n>`|`1000`| Node-count threshold below which a component is treated as small. |
83
+
84
+
---
85
+
86
+
## osrm-customize
87
+
88
+
Applies live traffic data (speed and turn-penalty files) to a partitioned MLD
89
+
graph. Can be run repeatedly without re-partitioning when speeds change.
90
+
91
+
```
92
+
osrm-customize <input.osrm> [options]
93
+
```
94
+
95
+
| Flag | Default | Description |
96
+
|------|---------|-------------|
97
+
|`--segment-speed-file <file>`|| CSV with `nodeA,nodeB,speed` columns to override edge weights. Repeatable. |
98
+
|`--turn-penalty-file <file>`|| CSV with `from_node,via_node,to_node,penalty` to override turn weights. Repeatable. |
99
+
|`--edge-weight-updates-over-factor <x>`|`0` (disabled) | Log edges whose weight changed by more than factor `x` (requires `--segment-speed-file`). |
100
+
|`--parse-conditionals-from-now <utc_timestamp>`|`0` (disabled) | UTC Unix timestamp from which to evaluate conditional turn restrictions. |
101
+
|`--time-zone-file <file>`|| GeoJSON file with time-zone boundaries, required for conditional restriction parsing. |
102
+
103
+
---
104
+
105
+
## osrm-contract
106
+
107
+
Builds a Contraction Hierarchy (CH) from the extracted graph. Use this instead
108
+
of `osrm-partition` + `osrm-customize` when you don't need live traffic updates.
109
+
110
+
```
111
+
osrm-contract <input.osrm> [options]
112
+
```
113
+
114
+
| Flag | Default | Description |
115
+
|------|---------|-------------|
116
+
|`--segment-speed-file <file>`|| CSV with `nodeA,nodeB,speed` columns to override edge weights. Repeatable. |
117
+
|`--turn-penalty-file <file>`|| CSV with `from_node,via_node,to_node,penalty` to override turn weights. Repeatable. |
118
+
|`--edge-weight-updates-over-factor <x>`|`0` (disabled) | Log edges whose weight changed by more than factor `x`. |
119
+
|`--parse-conditionals-from-now <utc_timestamp>`|`0` (disabled) | UTC Unix timestamp for evaluating conditional turn restrictions. |
120
+
|`--time-zone-file <file>`|| GeoJSON file with time-zone boundaries, required for conditional restriction parsing. |
121
+
122
+
---
123
+
124
+
## osrm-routed
125
+
126
+
The HTTP server. Loads a prepared dataset and serves the OSRM HTTP API.
127
+
128
+
```
129
+
osrm-routed <base.osrm> [options]
130
+
```
131
+
132
+
### Server
133
+
134
+
| Flag | Short | Default | Description |
135
+
|------|-------|---------|-------------|
136
+
|`--ip <address>`|`-i`|`0.0.0.0`| IP address to listen on. |
137
+
|`--port <n>`|`-p`|`5000`| TCP port to listen on. |
138
+
|`--keepalive-timeout <s>`|`-k`|`5`| HTTP keep-alive timeout in seconds. |
139
+
|`--trial`||| Start up fully, then exit immediately. Useful to validate a dataset without serving traffic. |
0 commit comments