Update docs/nodejs/api.md

Co-authored-by: Michael Bell <michael@mjjbell.com>
This commit is contained in:
Ömer Faruk Özdemir 2021-08-26 21:13:58 +03:00 committed by GitHub
parent 485ec87995
commit 73476a398f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -244,7 +244,7 @@ osrm.match(options, function(err, response) {
Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** containing `tracepoints` and `matchings`. Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** containing `tracepoints` and `matchings`.
**`tracepoints`** Array of [`Ẁaypoint`](#waypoint) objects representing all points of the trace in order. **`tracepoints`** Array of [`Ẁaypoint`](#waypoint) objects representing all points of the trace in order.
If the trace point was ommited by map matching because it is an outlier, the entry will be null. If the trace point was ommited by map matching because it is an outlier, the entry will be null.
Each `Waypoint` object includes two additional properties, Each `Waypoint` object has the following additional properties,
1) `matchings_index`: Index to the 1) `matchings_index`: Index to the
[`Route`](#route) object in matchings the sub-trace was matched to, [`Route`](#route) object in matchings the sub-trace was matched to,