From 2035a3595eb8a9dd7df66cbb3ea55f721d3dec32 Mon Sep 17 00:00:00 2001 From: olivierdalang Date: Mon, 25 Apr 2022 15:11:56 +0200 Subject: [PATCH] move robust mode to advanced parameters --- docs/reference.md | 20 +++++++++---------- .../algorithms/simple.py | 3 ++- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/docs/reference.md b/docs/reference.md index af72ef9..63b2657 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -247,11 +247,11 @@ It can be used to get information such as a service area polygon based on travel - UNION will return the union of all polygons for all departure/arrivals searches. - INTERSECTION will return the intersection of all departure/arrival searches. -**Robust mode:** +**Output layer:** Where to save the output layer. If you leave this empty, the result will be loaded as a temporary layer. It is still possible to save a temporary layer afterwards by right-clicking it in the legend and choosing "make permanent". -By default, if any error happens, even on just one search, the algorithm fails and returns no result. In cases where partial results are still desired, you can enable robust mode. This will prevent batching and ignore failing requests, returning partial results. Note that this will consume your API quotas much faster. +**Robust mode (advanced parameters):** -**Output layer:** Where to save the output layer. If you leave this empty, the result will be loaded as a temporary layer. It is still possible to save a temporary layer afterwards by right-clicking it in the legend and choosing "make permanent". +By default, if any error happens, even on just one search, the algorithm fails and returns no result. In cases where partial results are still desired, you can enable robust mode. This will prevent batching and ignore failing requests, returning partial results. Note that this will consume your API quotas much faster. ### ![](images/icons/timefilter_simple.svg#icon) Time filter (Simplified) @@ -281,11 +281,11 @@ It can be used to get filter a point layer using a time search. **Load fares information:** Load informations about fares in the resulting attributes. -**Robust mode:** +**Output layer:** Where to save the output layer. If you leave this empty, the result will be loaded as a temporary layer. It is still possible to save a temporary layer afterwards by right-clicking it in the legend and choosing "make permanent". -By default, if any error happens, even on just one search, the algorithm fails and returns no result. In cases where partial results are still desired, you can enable robust mode. This will prevent batching and ignore failing requests, returning partial results. Note that this will consume your API quotas much faster. +**Robust mode (advanced parameters):** -**Output layer:** Where to save the output layer. If you leave this empty, the result will be loaded as a temporary layer. It is still possible to save a temporary layer afterwards by right-clicking it in the legend and choosing "make permanent". +By default, if any error happens, even on just one search, the algorithm fails and returns no result. In cases where partial results are still desired, you can enable robust mode. This will prevent batching and ignore failing requests, returning partial results. Note that this will consume your API quotas much faster. ### ![](images/icons/route_simple.svg#icon) Route (Simplified) @@ -313,10 +313,6 @@ It can be used to get the best routes between two sets of points. **Load fares information:** Load informations about fares in the resulting attributes. -**Robust mode:** - -By default, if any error happens, even on just one search, the algorithm fails and returns no result. In cases where partial results are still desired, you can enable robust mode. This will prevent batching and ignore failing requests, returning partial results. Note that this will consume your API quotas much faster. - **Output style:** - BY_ROUTE : return one linestring per route @@ -325,6 +321,10 @@ By default, if any error happens, even on just one search, the algorithm fails a **Output layer:** Where to save the output layer. If you leave this empty, the result will be loaded as a temporary layer. It is still possible to save a temporary layer afterwards by right-clicking it in the legend and choosing "make permanent". +**Robust mode (advanced parameters):** + +By default, if any error happens, even on just one search, the algorithm fails and returns no result. In cases where partial results are still desired, you can enable robust mode. This will prevent batching and ignore failing requests, returning partial results. Note that this will consume your API quotas much faster. + ### ![](images/icons/timemap_advanced.svg#icon) Time map (Advanced) This algorithm provides advanced access to the time-map endpoint. diff --git a/travel_time_platform_plugin/algorithms/simple.py b/travel_time_platform_plugin/algorithms/simple.py index 355ba1f..dd80c41 100644 --- a/travel_time_platform_plugin/algorithms/simple.py +++ b/travel_time_platform_plugin/algorithms/simple.py @@ -89,7 +89,8 @@ def initAlgorithm(self, config): tr("Robust mode"), optional=True, defaultValue=False, - ) + ), + advanced=True, ) # OUTPUT