Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ that may never merge. They are not releases and are not listed here.

## Unreleased

- **Breaking**: `--eta-type`, `--navigation-profile` and `--origin` removed
from `mapbox search category`. The category endpoint does not currently
return an ETA, so the flags were accepted but had no effect. A script
that passes them now fails with an unknown-argument error; drop the
flags. `mapbox search forward` keeps them. (#76)

- **Breaking**: `--exclude-fields` removed from `mapbox search forward`
and `mapbox search category`. The `photos` and `reviews` fields it
omitted are only returned for accounts with a specific data provider
Expand Down
25 changes: 0 additions & 25 deletions custom-openapi/search/openapi/search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -488,31 +488,6 @@ paths:
description: "When SAR is enabled, maximum detour allowed in estimated minutes from the route."
schema:
type: number
- name: "eta_type"
in: query
required: false
description: >-
Enable ETA calculation in the response. The only allowed value
is `navigation`; also requires `navigation_profile` and either
`origin` or `proximity`.
schema:
type: string
enum: ["navigation"]
- name: "navigation_profile"
in: query
required: false
description: "When ETA calculation is enabled, the routing profile to use."
schema:
type: string
enum: ["driving", "walking", "cycling"]
- name: "origin"
in: query
required: false
description: >-
When ETA calculation is enabled, the location to calculate
distance from, as `longitude,latitude`.
schema:
type: string
responses:
"200":
description: A GeoJSON FeatureCollection of matching features.
Expand Down
1 change: 0 additions & 1 deletion docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,6 @@ here enforces it before the request goes out.
| `--language <tag>` | ISO language code. |
| `--sar-type isochrone` + `--route <polyline>` + `--route-geometry <polyline\|polyline6>` | Search-along-route: results near a route rather than a point. |
| `--time-deviation <minutes>` | With SAR, maximum detour allowed from the route. |
| `--eta-type navigation` + `--navigation-profile <driving\|walking\|cycling>` + `--origin <lon,lat>` | Include an ETA in each result, from `--origin` (or `--proximity`) to it. |

#### Examples

Expand Down
Loading