From 31d6d74f90fa760aa8d1f312c2593dabcbc9a69b Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Sun, 18 Feb 2018 16:55:26 +0000 Subject: [PATCH] Update documentation and changelog --- CHANGELOG.md | 6 +++++- docs/nodejs/api.md | 1 + src/nodejs/node_osrm.cpp | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c62041d30..b05d0f34d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # UNRELEASED - Changes from 5.16.0: - Bugfixes: fix deduplication of route steps when waypoints are used [#4909](https://github.com/Project-OSRM/osrm-backend/issues/4909) + - Tools: + - `osrm-routed` accepts a new property `--memory_file` to store memory in a file on disk. + - NodeJS: + - `OSRM` object accepts a new option `memory_file` that stores the memory in a file on disk. + # 5.16.0 - Changes from 5.15.2: @@ -17,7 +22,6 @@ - ADDED #4775: Exposes more information to the turn function, now being able to set turn weights with highway and access information of the turn as well as other roads at the intersection [#4775](https://github.com/Project-OSRM/osrm-backend/issues/4775) - FIXED #4763: Add support for non-numerical units in car profile for maxheight [#4763](https://github.com/Project-OSRM/osrm-backend/issues/4763) - ADDED #4872: Handling of `barrier=height_restrictor` nodes [#4872](https://github.com/Project-OSRM/osrm-backend/pull/4872) - # 5.15.2 - Changes from 5.15.1: - Features: diff --git a/docs/nodejs/api.md b/docs/nodejs/api.md index 220950094..eec9ab67d 100644 --- a/docs/nodejs/api.md +++ b/docs/nodejs/api.md @@ -25,6 +25,7 @@ var osrm = new OSRM('network.osrm'); Make sure you prepared the dataset with the correct toolchain. - `options.shared_memory` **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** Connects to the persistent shared memory datastore. This requires you to run `osrm-datastore` prior to creating an `OSRM` object. + - `options.memory_file` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)?** Path to a file on disk to store the memory using mmap. - `options.path` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)?** The path to the `.osrm` files. This is mutually exclusive with setting {options.shared_memory} to true. - `options.max_locations_trip` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Max. locations supported in trip query (default: unlimited). - `options.max_locations_viaroute` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Max. locations supported in viaroute query (default: unlimited). diff --git a/src/nodejs/node_osrm.cpp b/src/nodejs/node_osrm.cpp index f4a63256b..e98e251d2 100644 --- a/src/nodejs/node_osrm.cpp +++ b/src/nodejs/node_osrm.cpp @@ -72,6 +72,7 @@ NAN_MODULE_INIT(Engine::Init) * @param {Boolean} [options.shared_memory] Connects to the persistent shared memory datastore. * This requires you to run `osrm-datastore` prior to creating an `OSRM` object. * @param {String} [options.path] The path to the `.osrm` files. This is mutually exclusive with setting {options.shared_memory} to true. + * @param {String} [options.memory_file] Path to a file to store the memory using mmap. * @param {Number} [options.max_locations_trip] Max. locations supported in trip query (default: unlimited). * @param {Number} [options.max_locations_viaroute] Max. locations supported in viaroute query (default: unlimited). * @param {Number} [options.max_locations_distance_table] Max. locations supported in distance table query (default: unlimited).