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/api-reference/endpoints/directions/custom-models.md
+199-13
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,17 @@ The request body parameter `custom_model` allows setting specific parameters inf
4
4
route calculation.
5
5
6
6
This parameter is available for directions requests only on profiles that have been created using the required encoder
7
-
option set at graph build time. **This feature is still in experimental stat and is currently not available on our public API for any profile**. You can use this feature on your [own openrouteservice instance](/run-instance/) by [enabling it for the profile](/run-instance/configuration/engine/profiles/build.md#encoder-options) in the `encoder_options`.
7
+
option set at graph build time. **This feature is still in experimental state and is currently not available on our
8
+
public API for any profile**. You can use this feature on your [own openrouteservice instance](/run-instance/)
9
+
by [enabling it for the profile](/run-instance/configuration/engine/profiles/build.md#encoder-options) in the
10
+
`encoder_options`.
8
11
9
-
The `custom_model` parameter is a JSON object, the following example shows the structure:
12
+
The `custom_model` parameter is a JSON object, the following example shows the structure within a request body for the
13
+
directions endpoint:
10
14
11
15
```json
12
16
{
17
+
"preference": "custom",
13
18
"coordinates": [
14
19
[
15
20
8.681495,
@@ -40,16 +45,180 @@ The `custom_model` parameter is a JSON object, the following example shows the s
Copy file name to clipboardExpand all lines: docs/run-instance/configuration/engine/profiles/service.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ need to be set specifically for each profile. More parameters relevant at query
16
16
| maximum_snapping_radius | number | Maximum distance around a given coordinate to find connectable edges |`400`|
17
17
| maximum_visited_nodes | number | Only for `public-transport` profile: maximum allowed number of visited nodes in shortest path computation |`1000000`|
18
18
| force_turn_costs | boolean | Should turn restrictions be obeyed |`false`|
19
-
| allow_custom_models | boolean | Allows custom model requests on this profile. Requires that `encoder_options.enable_custom_models` is set to true in the [build](build.md#encoder_options) section of this profile. |`false`|
19
+
| allow_custom_models | boolean | Allows custom model requests on this profile. Requires that `encoder_options.enable_custom_models` is set to true in the [build](build.md#encoder_options) section of this profile. |`true`|
0 commit comments