@@ -46,13 +46,12 @@ paths:
4646 # named beyond `driving`/`walking`/`cycling`. Same fix as
4747 # `directions.yaml`'s `profile`.
4848 description : >-
49- The routing profile. `mapbox/driving-traffic` (accounts for
50- live traffic, caps at 10 coordinates instead of 25),
51- `mapbox/driving`, `mapbox/walking`, and `mapbox/cycling` are
49+ The routing profile — `mapbox/driving-traffic` (accounts for
50+ live traffic, 10 coordinates at most instead of 25),
51+ `mapbox/driving`, `mapbox/walking`, or `mapbox/cycling` are
5252 documented, but not necessarily exhaustive: some accounts have
53- additional profiles of their own. Sent exactly as typed, the
54- API is the authority on whether a value is valid, not this
55- description.
53+ additional profiles of their own. Any other value is sent as
54+ typed.
5655 schema :
5756 type : string
5857 minLength : 1
@@ -100,17 +99,18 @@ paths:
10099 filtering the road segments considered by direction of travel.
101100 schema :
102101 type : string
102+ # Semicolons, never commas: verified against production, a
103+ # comma-separated list is a 422 ("may be \"all\" or
104+ # semicolon-separated list of 0-based integer indices"). Other index
105+ # lists on the Navigation commands vary per parameter, so this one
106+ # says so explicitly.
103107 - name : " sources"
104108 in : query
105109 required : false
106110 description : >-
107- Which coordinates act as sources (matrix rows) — `all`
108- (the default), or zero-based indices, semicolon-separated.
109- Verified against production: a comma-separated list is a 422,
110- "may be \"all\" or semicolon-separated list of 0-based integer
111- indices" — unlike every other index/value list on this CLI's
112- Navigation commands, which are comma- or semicolon-separated
113- per parameter but never comma where this API wants semicolons.
111+ Which coordinates act as sources (matrix rows) — `all` (the
112+ default), or zero-based indices separated by semicolons
113+ (`0;2`), not commas.
114114 schema :
115115 type : string
116116 example : " 0;2"
@@ -119,18 +119,14 @@ paths:
119119 required : false
120120 description : >-
121121 Which coordinates act as destinations (matrix columns) — `all`
122- (the default), or zero-based indices, semicolon- separated. See
123- `sources` above — comma-separated is a 422 here specifically .
122+ (the default), or zero-based indices separated by semicolons
123+ (`0;2`), not commas .
124124 schema :
125125 type : string
126126 example : " 1;3"
127127 - name : " fallback_speed"
128128 in : query
129129 required : false
130- # Content before "Legacy", not after: `first_sentence` in
131- # `src/main.rs` cuts a `--help` line at the first `.`, and
132- # "Legacy." on its own left `--help` showing just that word.
133- # `--schema` and `docs/commands.md` still show it in full.
134130 description : >-
135131 Replaces a `null` (unreachable) cell with a straight-line
136132 estimate at this speed, km/h, rather than leaving it `null`.
0 commit comments