Fix annotations=true handling in NodeJS bindings

This commit is contained in:
Siarhei Fedartsou 2022-10-18 18:38:49 +02:00
parent c7bf2a5dd5
commit 1ffb676f3e
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# Unreleased
- Changes from 5.27.1
- Misc:
- FIXED: Fix annotations=true handling in NodeJS bindings. [#6415](https://github.com/Project-OSRM/osrm-backend/pull/6415/)
# 5.27.1
- Changes from 5.27.0
- Misc:

View File

@ -848,6 +848,9 @@ inline bool parseCommonParameters(const v8::Local<v8::Object> &obj, ParamType &p
Nan::ThrowError("this 'annotations' param is not supported");
return false;
}
params->annotations =
params->annotations_type != osrm::RouteParameters::AnnotationsType::None;
}
}
else