Fix annotations=true handling in NodeJS bindings
This commit is contained in:
parent
c7bf2a5dd5
commit
1ffb676f3e
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user