osrm-backend/include/extractor/original_edge_data.hpp

37 lines
1.1 KiB
C++
Raw Normal View History

#ifndef ORIGINAL_EDGE_DATA_HPP
#define ORIGINAL_EDGE_DATA_HPP
2013-12-09 11:47:42 -05:00
2016-01-02 11:13:44 -05:00
#include "extractor/travel_mode.hpp"
#include "extractor/turn_instructions.hpp"
#include "util/typedefs.hpp"
2013-12-09 11:47:42 -05:00
2014-01-29 05:30:04 -05:00
#include <limits>
2013-12-09 11:47:42 -05:00
2014-05-07 12:39:16 -04:00
struct OriginalEdgeData
{
explicit OriginalEdgeData(NodeID via_node,
unsigned name_id,
TurnInstruction turn_instruction,
bool compressed_geometry,
TravelMode travel_mode)
2014-05-07 12:39:16 -04:00
: via_node(via_node), name_id(name_id), turn_instruction(turn_instruction),
compressed_geometry(compressed_geometry), travel_mode(travel_mode)
2014-05-07 12:39:16 -04:00
{
}
OriginalEdgeData()
: via_node(std::numeric_limits<unsigned>::max()),
name_id(std::numeric_limits<unsigned>::max()), turn_instruction(TurnInstruction::NoTurn),
compressed_geometry(false), travel_mode(TRAVEL_MODE_INACCESSIBLE)
2014-05-07 12:39:16 -04:00
{
}
2013-12-09 11:47:42 -05:00
NodeID via_node;
unsigned name_id;
TurnInstruction turn_instruction;
2014-01-04 06:10:22 -05:00
bool compressed_geometry;
TravelMode travel_mode;
2013-12-09 11:47:42 -05:00
};
#endif // ORIGINAL_EDGE_DATA_HPP