diff --git a/CHANGELOG.md b/CHANGELOG.md index 42df219..21869bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/custom-openapi/search/openapi/search.yaml b/custom-openapi/search/openapi/search.yaml index 69ad746..f229d00 100644 --- a/custom-openapi/search/openapi/search.yaml +++ b/custom-openapi/search/openapi/search.yaml @@ -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. diff --git a/docs/commands.md b/docs/commands.md index 87ade35..0b8c45b 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -1498,7 +1498,6 @@ here enforces it before the request goes out. | `--language ` | ISO language code. | | `--sar-type isochrone` + `--route ` + `--route-geometry ` | Search-along-route: results near a route rather than a point. | | `--time-deviation ` | With SAR, maximum detour allowed from the route. | -| `--eta-type navigation` + `--navigation-profile ` + `--origin ` | Include an ETA in each result, from `--origin` (or `--proximity`) to it. | #### Examples