Fix annotations=true handling in NodeJS bindings

This commit is contained in:
Siarhei Fedartsou 2022-10-18 18:45:53 +02:00
parent 67b80e6536
commit 567be2e6a5

View File

@ -439,7 +439,7 @@ class RouteAPI : public BaseAPI
{
// AnnotationsType uses bit flags, & operator checks if a property is set
flatbuffers::Offset<flatbuffers::Vector<float>> speed;
if (parameters.annotations_type & RouteParameters::AnnotationsType::Speed)
if (requested_annotations & RouteParameters::AnnotationsType::Speed)
{
double prev_speed = 0;
speed =