Fast map matching  0.1.0
type.hpp
1 
10 #ifndef FMM_TYPES_HPP
11 #define FMM_TYPES_HPP
12 
13 #include <vector>
14 #include <list>
15 #include <string>
16 #include <unordered_map>
17 #include "core/geometry.hpp"
18 
19 namespace FMM {
20 namespace NETWORK{
21 
22 typedef int NodeID;
23 typedef int EdgeID;
24 typedef unsigned int NodeIndex;
26 typedef unsigned int EdgeIndex;
32 typedef std::vector<NodeID> NodeIDVec;
36 typedef std::unordered_map<NodeID,NodeIndex> NodeIndexMap;
40 typedef std::unordered_map<EdgeID,EdgeIndex> EdgeIndexMap;
41 
45 struct Edge
46 {
51  double length;
53 };
54 
55 } // NETWORK
56 } // MM
57 #endif /* MM_TYPES_HPP */
FMM::NETWORK::NodeIDVec
std::vector< NodeID > NodeIDVec
Vector of node id.
Definition: type.hpp:32
FMM::NETWORK::Edge::geom
FMM::CORE::LineString geom
the edge geometry
Definition: type.hpp:52
FMM::NETWORK::Edge::index
EdgeIndex index
Index of an edge, which is continuous [0,N-1].
Definition: type.hpp:47
FMM::NETWORK::Edge::id
EdgeID id
Edge ID, can be discontinuous integers.
Definition: type.hpp:48
FMM
Fast map matching.
Definition: geom_algorithm.hpp:17
FMM::NETWORK::EdgeID
int EdgeID
Edge ID in the network, can be discontinuous int.
Definition: type.hpp:23
FMM::CORE::LineString
Linestring geometry class.
Definition: geometry.hpp:34
FMM::NETWORK::NodeID
int NodeID
Node ID in the network, can be discontinuous int.
Definition: type.hpp:22
FMM::NETWORK::Edge::source
NodeIndex source
source node index
Definition: type.hpp:49
FMM::NETWORK::NodeIndex
unsigned int NodeIndex
Node Index in the network, range from [0,num_vertices-1 ].
Definition: type.hpp:24
FMM::NETWORK::EdgeIndexMap
std::unordered_map< EdgeID, EdgeIndex > EdgeIndexMap
Map of edge index.
Definition: type.hpp:40
FMM::NETWORK::EdgeIndex
unsigned int EdgeIndex
Edge Index in the network, range from [0,num_edges-1 ].
Definition: type.hpp:26
FMM::NETWORK::Edge::length
double length
length of the edge polyline
Definition: type.hpp:51
FMM::NETWORK::NodeIndexMap
std::unordered_map< NodeID, NodeIndex > NodeIndexMap
Map of node index.
Definition: type.hpp:36
FMM::NETWORK::Edge::target
NodeIndex target
target node index
Definition: type.hpp:50
FMM::NETWORK::Edge
Road edge class.
Definition: type.hpp:45