blob: c4e3099514835bc1b2c5f02a38c2446acfe796fb (
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
25
26
27
28
29
30
31
32
33
34
35
|
#pragma once
#include "routing/osrm2feature_map.hpp"
#include "routing/route.hpp"
#include "routing/turns.hpp"
#include "std/function.hpp"
#include "std/utility.hpp"
#include "std/vector.hpp"
struct PathData;
class Index;
namespace routing
{
struct RoutingMapping;
namespace turns
{
// Returns a segment index by STL-like range [s, e) of segments indices for passed node.
typedef function<size_t(pair<size_t, size_t>)> TGetIndexFunction;
OsrmMappingTypes::FtSeg GetSegment(PathData const & node, RoutingMapping const & routingMapping,
TGetIndexFunction GetIndex);
vector<routing::turns::TSingleLane> GetLanesInfo(PathData const & node,
RoutingMapping const & routingMapping,
TGetIndexFunction GetIndex, Index const & index);
/// CalculateTurnGeometry calculates geometry for all the turns. That means that for every turn
/// CalculateTurnGeometry calculates a sequence of points which will be used
/// for displaying arrows on the route.
void CalculateTurnGeometry(vector<m2::PointD> const & points, Route::TurnsT const & turnsDir,
turns::TurnsGeomT & turnsGeom);
void FixupTurns(vector<m2::PointD> const & points, Route::TurnsT & turnsDir);
}
}
|