fix cast to be explicit
This commit is contained in:
parent
53e01952be
commit
93b33c0518
@ -72,7 +72,7 @@ class DescriptionFactory
|
|||||||
{
|
{
|
||||||
// compute distance/duration for route summary
|
// compute distance/duration for route summary
|
||||||
distance = static_cast<unsigned>(std::round(raw_distance));
|
distance = static_cast<unsigned>(std::round(raw_distance));
|
||||||
duration = static_cast<unsigned>(std::round(raw_duration / 10.));
|
duration = static_cast<EdgeWeight>(std::round(raw_duration / 10.));
|
||||||
}
|
}
|
||||||
} summary;
|
} summary;
|
||||||
|
|
||||||
@ -88,10 +88,7 @@ class DescriptionFactory
|
|||||||
JSON::Value AppendGeometryString(const bool return_encoded);
|
JSON::Value AppendGeometryString(const bool return_encoded);
|
||||||
std::vector<unsigned> const &GetViaIndices() const;
|
std::vector<unsigned> const &GetViaIndices() const;
|
||||||
|
|
||||||
double get_entire_length() const
|
double get_entire_length() const { return entire_length; }
|
||||||
{
|
|
||||||
return entire_length;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Run(const unsigned zoom_level);
|
void Run(const unsigned zoom_level);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user