2016-05-12 12:50:10 -04:00
|
|
|
#ifndef OSRM_EXTRACTION_SEGMENT_HPP
|
|
|
|
#define OSRM_EXTRACTION_SEGMENT_HPP
|
|
|
|
|
2024-04-06 04:27:42 -04:00
|
|
|
#include <extractor/node_based_edge.hpp>
|
2016-05-12 12:50:10 -04:00
|
|
|
#include <util/coordinate.hpp>
|
|
|
|
|
2022-12-11 04:10:26 -05:00
|
|
|
namespace osrm::extractor
|
2016-05-12 12:50:10 -04:00
|
|
|
{
|
|
|
|
|
|
|
|
struct ExtractionSegment
|
|
|
|
{
|
|
|
|
ExtractionSegment(const osrm::util::Coordinate source_,
|
|
|
|
const osrm::util::Coordinate target_,
|
|
|
|
double distance_,
|
|
|
|
double weight_,
|
2024-04-06 04:27:42 -04:00
|
|
|
double duration_,
|
|
|
|
const NodeBasedEdgeClassification flags_)
|
2016-05-12 12:50:10 -04:00
|
|
|
: source(source_), target(target_), distance(distance_), weight(weight_),
|
2024-04-06 04:27:42 -04:00
|
|
|
duration(duration_), flags(flags_)
|
2016-05-12 12:50:10 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
const osrm::util::Coordinate source;
|
|
|
|
const osrm::util::Coordinate target;
|
|
|
|
const double distance;
|
|
|
|
double weight;
|
|
|
|
double duration;
|
2024-04-06 04:27:42 -04:00
|
|
|
const NodeBasedEdgeClassification flags;
|
2016-05-12 12:50:10 -04:00
|
|
|
};
|
2022-12-20 12:00:11 -05:00
|
|
|
} // namespace osrm::extractor
|
2016-05-12 12:50:10 -04:00
|
|
|
|
|
|
|
#endif
|