round speed to 1 decimal place

This commit is contained in:
karenzshea
2017-02-13 11:06:38 +01:00
committed by Patrick Niklaus
parent 07a1a907f8
commit d3c2ac671f
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ class RouteAPI : public BaseAPI
{
annotation.values["speed"] = GetAnnotations(
leg_geometry, [](const guidance::LegGeometry::Annotation &anno) {
return anno.distance / anno.duration;
return std::round(anno.distance / anno.duration * 10.) / 10.;
});
}