Skip to content

Commit 10330f7

Browse files
committed
TLAB - SL documentation. Add required parameter to documentation.
1 parent ceb19ca commit 10330f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/api/our-apis/sl/journey-planner-2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ https://journeyplanner.integration.sl.se/v2/stop-finder?name_sf=odenplan&any_obj
3737
{{% tab "Journey planner" %}}
3838

3939
```text
40-
https://journeyplanner.integration.sl.se/v2/trips?type_origin=any&type_destination=any&name_origin=9091001000009182&name_destination=9091001000009192
40+
https://journeyplanner.integration.sl.se/v2/trips?type_origin=any&type_destination=any&name_origin=9091001000009182&name_destination=9091001000009192&calc_number_of_trips=3
4141
```
4242

4343
{{% /tab %}}
@@ -77,13 +77,13 @@ For a complete list of all parameters, see the OpenAPI specification on the bott
7777
| name_origin | Yes | The location id or coordinates to depart from. `type_origin` should match the type of input used. Syntax for coordinates: "<x>:<y>:WGS84\[dd.ddddd]" E.g. "18.013809:59.335104:WGS84\[dd.ddddd]". Note: Type must be stated in parameter "type_sf". |
7878
| type_destination | Yes | The type of input which is used for the destination. `coord` for coordinates, or `any` for street and stop names. |
7979
| name_destination | Yes | The location id, or coordinates. `type_destination` should match the type of input used. Syntax for coordinates: "<x>:<y>:WGS84\[dd.ddddd]" E.g. "18.013809:59.335104:WGS84\[dd.ddddd]". Note: Type must be stated in parameter "type_sf". |
80+
| calc_number_of_trips | Yes, 1-3 | The number of public transport trips to return. 1-3. Walk and bike routes are not affected. In some cases, the journey planner will calculate additional connections, resulting in a higher number of results than stated in this parameter. In some cases the number of connections will be lower than the stated number of results. |
8081
| type_via | No, default no via | The type of input which is used for defining a via stop. `coord` for coordinates, or `any` for street and stop names. |
8182
| name_via | No, default no via | The location id, or coordinates, to use as an additional stop between the origin and destination. `type_via` should match the type of input used. Syntax for coordinates: "<x>:<y>:WGS84\[dd.ddddd]" E.g. "18.013809:59.335104:WGS84\[dd.ddddd]". Note: Type must be stated in parameter "type_sf". |
8283
| dwell_time | No, default no via | The time to wait at the via stop, in `hh:mm` format. |
8384
| type_not_via | No, default no stop to avoid | The type of input which is used for defining a stop to avoid. `coord` for coordinates, or `any` for street and stop names. |
8485
| name_not_via | No, default no stop to avoid | The location id, or coordinates, to avoid. `type_not_via` should match the type of input used. Syntax for coordinates: "<x>:<y>:WGS84\[dd.ddddd]" E.g. "18.013809:59.335104:WGS84\[dd.ddddd]". Note: Type must be stated in parameter "type_sf". |
8586
| language | No, default `sv` | The language to use in the response. `sv` or `en`. |
86-
| calc_number_of_trips | No, default 3 | The number of public transport trips to return. 0-3. Walk and bike routes are not affected. In some cases, the journey planner will calculate additional connections, resulting in a higher number of results than stated in this parameter. In some cases the number of connections will be lower than the stated number of results. |
8787
| max_changes | No, default 9 | The number of changes allowed in results, 0-9. |
8888
| calc_one_direction | No, default false | Prevents the journey planner from calculating one result before the requested departure time |
8989
| incl_mot_0 | No, default true | Whether or not to include commuter trains in trip calculation |

0 commit comments

Comments
 (0)