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

edge_estimator.hpp « routing - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0a6ec2d1e05c428de6de84f3317c870b029633be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include "routing/geometry.hpp"
#include "routing/vehicle_model.hpp"

#include "geometry/point2d.hpp"

#include "std/cstdint.hpp"
#include "std/shared_ptr.hpp"

namespace routing
{
class EdgeEstimator
{
public:
  virtual ~EdgeEstimator() = default;

  virtual double CalcEdgesWeight(RoadGeometry const & road, uint32_t pointFrom,
                                 uint32_t pointTo) const = 0;
  virtual double CalcHeuristic(m2::PointD const & from, m2::PointD const & to) const = 0;

  static shared_ptr<EdgeEstimator> CreateForCar(IVehicleModel const & vehicleModel);
};
}  // namespace routing