diff --git a/CHANGELOG.md b/CHANGELOG.md index 53d68fe..f48891d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.16.1 + +- **Add:** Add `session_token` as optional parameter in the geocoding services + ## 0.16.0 - **Add:** Add `depart_at` as optional parameter in the isochrone service diff --git a/docs/services.md b/docs/services.md index ffc8a43..35313d5 100644 --- a/docs/services.md +++ b/docs/services.md @@ -1687,6 +1687,7 @@ See the [public documentation][241]. * `config.routing` **[boolean][209]** Specify whether to request additional metadata about the recommended navigation destination. Only applicable for address features. (optional, default `false`) * `config.fuzzyMatch` **[boolean][209]** Specify whether the Geocoding API should attempt approximate, as well as exact, matching. (optional, default `true`) * `config.worldview` **[String][208]** Filter results to geographic features whose characteristics are defined differently by audiences belonging to various regional, cultural, or political groups. (optional, default `"us"`) + * `config.session_token` **[String][208]?** A unique session identifier generated by the client. #### Examples @@ -1758,6 +1759,7 @@ See the [public documentation][245]. * `config.reverseMode` **(`"distance"` | `"score"`)** Set the factors that are used to sort nearby results. (optional, default `'distance'`) * `config.routing` **[boolean][209]** Specify whether to request additional metadata about the recommended navigation destination. Only applicable for address features. (optional, default `false`) * `config.worldview` **[String][208]** Filter results to geographic features whose characteristics are defined differently by audiences belonging to various regional, cultural, or political groups. (optional, default `"us"`) + * `config.session_token` **[String][208]?** A unique session identifier generated by the client. #### Examples @@ -2380,6 +2382,7 @@ See the [public documentation][264]. * `config.autocomplete` **[boolean][209]** Return autocomplete results or not. (optional, default `true`) * `config.permanent` **[boolean][209]** Specify whether you intend to store the results of the query (true) or not (false, default). Temporary results are not allowed to be cached, while Permanent results are allowed to be cached and stored indefinitely. (optional, default `false`) * `config.worldview` **[String][208]** Filter results to geographic features whose characteristics are defined differently by audiences belonging to various regional, cultural, or political groups. (optional, default `"us"`) + * `config.session_token` **[String][208]?** A unique session identifier generated by the client. #### Examples @@ -2463,6 +2466,7 @@ See the [public documentation][265]. [ISO 639-1 language code][244] and optionally one or more IETF subtags for country or script. * `config.permanent` **[boolean][209]** Specify whether you intend to store the results of the query (true) or not (false, default). Temporary results are not allowed to be cached, while Permanent results are allowed to be cached and stored indefinitely. (optional, default `false`) * `config.worldview` **[String][208]** Filter results to geographic features whose characteristics are defined differently by audiences belonging to various regional, cultural, or political groups. (optional, default `"us"`) + * `config.session_token` **[String][208]?** A unique session identifier generated by the client. #### Examples diff --git a/package.json b/package.json index def5f7e..09492e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mapbox/mapbox-sdk", - "version": "0.16.0", + "version": "0.16.1", "description": "JS SDK for accessing Mapbox APIs", "main": "index.js", "files": [ diff --git a/services/geocoding-v6.js b/services/geocoding-v6.js index 909444b..16e6d90 100644 --- a/services/geocoding-v6.js +++ b/services/geocoding-v6.js @@ -58,6 +58,7 @@ var featureTypes = [ * @param {boolean} [config.autocomplete=true] - Return autocomplete results or not. * @param {boolean} [config.permanent=false] - Specify whether you intend to store the results of the query (true) or not (false, default). Temporary results are not allowed to be cached, while Permanent results are allowed to be cached and stored indefinitely. * @param {String} [config.worldview="us"] - Filter results to geographic features whose characteristics are defined differently by audiences belonging to various regional, cultural, or political groups. + * @param {String} [config.session_token] - A unique session identifier generated by the client. * @return {MapiRequest} * * @example @@ -200,6 +201,7 @@ GeocodingV6.forwardGeocode = function(config) { * [ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) and optionally one or more IETF subtags for country or script. * @param {boolean} [config.permanent=false] - Specify whether you intend to store the results of the query (true) or not (false, default). Temporary results are not allowed to be cached, while Permanent results are allowed to be cached and stored indefinitely. * @param {String} [config.worldview="us"] - Filter results to geographic features whose characteristics are defined differently by audiences belonging to various regional, cultural, or political groups. + * @param {String} [config.session_token] - A unique session identifier generated by the client. * @return {MapiRequest} * * @example diff --git a/services/geocoding.js b/services/geocoding.js index edeaea7..fcf9b8c 100644 --- a/services/geocoding.js +++ b/services/geocoding.js @@ -48,6 +48,7 @@ var featureTypes = [ * @param {boolean} [config.routing=false] - Specify whether to request additional metadata about the recommended navigation destination. Only applicable for address features. * @param {boolean} [config.fuzzyMatch=true] - Specify whether the Geocoding API should attempt approximate, as well as exact, matching. * @param {String} [config.worldview="us"] - Filter results to geographic features whose characteristics are defined differently by audiences belonging to various regional, cultural, or political groups. + * @param {String} [config.session_token] - A unique session identifier generated by the client. * @return {MapiRequest} * * @example @@ -155,6 +156,7 @@ Geocoding.forwardGeocode = function(config) { * @param {'distance'|'score'} [config.reverseMode='distance'] - Set the factors that are used to sort nearby results. * @param {boolean} [config.routing=false] - Specify whether to request additional metadata about the recommended navigation destination. Only applicable for address features. * @param {String} [config.worldview="us"] - Filter results to geographic features whose characteristics are defined differently by audiences belonging to various regional, cultural, or political groups. + * @param {String} [config.session_token] - A unique session identifier generated by the client. * @return {MapiRequest} * * @example