Welcome to mirror list, hosted at ThFree Co, Russian Federation.

maxspeeds_serialization.cpp « routing - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 28cdf505f2f9c40ab9dde5679018f0315847dfee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "routing/maxspeeds_serialization.hpp"

namespace routing
{
void GetForwardMaxspeedStats(std::vector<FeatureMaxspeed> const & speeds,
                             size_t & forwardMaxspeedsNumber, uint32_t & maxForwardFeatureId)
{
  for (auto const & s : speeds)
  {
    if (!s.IsBidirectional())
    {
      ++forwardMaxspeedsNumber;
      maxForwardFeatureId = s.GetFeatureId();
    }
  }
}
}  // namespace routing