Fix annotations=true handling in NodeJS bindings

This commit is contained in:
Siarhei Fedartsou 2022-10-18 18:43:46 +02:00
parent 1ffb676f3e
commit 67b80e6536
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +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/)
- FIXED: Fix annotations=true handling in NodeJS bindings & libosrm. [#6415](https://github.com/Project-OSRM/osrm-backend/pull/6415/)
# 5.27.1
- Changes from 5.27.0
- Misc:

View File

@ -778,7 +778,7 @@ class RouteAPI : public BaseAPI
util::json::Object annotation;
// AnnotationsType uses bit flags, & operator checks if a property is set
if (parameters.annotations_type & RouteParameters::AnnotationsType::Speed)
if (requested_annotations & RouteParameters::AnnotationsType::Speed)
{
double prev_speed = 0;
annotation.values["speed"] = GetAnnotations(