1 #ifndef OSMSCOUT_ROUTENODE_H 2 #define OSMSCOUT_ROUTENODE_H 52 void Read(
const TypeConfig& typeConfig,
53 FileScanner& scanner);
54 void Write(FileWriter& writer)
const;
64 static const uint8_t usableByFoot = 1u << 0u;
65 static const uint8_t usableByBicycle = 1u << 1u;
66 static const uint8_t usableByCar = 1u << 2u;
67 static const uint8_t restrictedForFoot = 1u << 3u;
68 static const uint8_t restrictedForBicycle = 1u << 4u;
69 static const uint8_t restrictedForCar = 1u << 5u;
109 return (flags & restrictedForFoot) != 0;
111 return (flags & restrictedForBicycle) != 0;
113 return (flags & restrictedForCar) != 0;
136 return point.GetId();
141 return point.GetCoord();
147 this->fileOffset=fileOffset;
151 uint8_t AddObject(
const ObjectFileRef&
object,
152 uint16_t objectVariantIndex);
154 void Read(FileScanner& scanner);
155 void Read(
const TypeConfig& typeConfig,
156 FileScanner& scanner);
157 void Write(FileWriter& writer)
const;
uint64_t Id
Definition: OSMScoutTypes.h:41
Definition: OSMScoutTypes.h:59
bool IsRestricted(Vehicle vehicle) const
Definition: RouteNode.h:105
uint8_t targetIndex
The index of the target path.
Definition: RouteNode.h:89
Distance distance
Distance from the current route node to the target route node.
Definition: RouteNode.h:99
uint8_t grade
Quality of road/track 1 (good)...5 (bad)
Definition: RouteNode.h:47
GeoCoord GetCoord() const
Definition: RouteNode.h:139
Vehicle
Definition: OSMScoutTypes.h:55
TypeInfoRef type
The type of the object.
Definition: RouteNode.h:45
Definition: RouteNode.h:86
uint16_t objectVariantIndex
Index into the lookup table, holding object specific routing data.
Definition: RouteNode.h:78
Id id
id of the targeting route node
Definition: RouteNode.h:100
Definition: OSMScoutTypes.h:57
uint8_t flags
Certain flags.
Definition: RouteNode.h:102
std::vector< Exclude > excludes
List of potential excludes regarding use of paths.
Definition: RouteNode.h:127
Definition: RouteNode.h:75
#define OSMSCOUT_API
Definition: CoreImportExport.h:45
bool operator<(const TileCacheKey &a, const TileCacheKey &b)
Definition: RouteNode.h:42
std::shared_ptr< RouteNode > RouteNodeRef
Definition: RouteNode.h:160
std::vector< ObjectData > objects
List of objects (ways, areas) that cross this route node.
Definition: RouteNode.h:125
Id GetId() const
Definition: RouteNode.h:134
ObjectFileRef object
Reference to the object.
Definition: RouteNode.h:77
bool operator==(const MapView &a, const MapView &b)
Definition: InputHandler.h:222
void Initialize(FileOffset fileOffset, const Point &point)
Definition: RouteNode.h:144
std::shared_ptr< TypeInfo > TypeInfoRef
Definition: TypeConfig.h:58
uint8_t objectIndex
The index of the way to use from this route node to the target route node.
Definition: RouteNode.h:101
uint64_t FileOffset
Definition: OSMScoutTypes.h:47
Definition: RouteNode.h:97
FileOffset GetFileOffset() const
Definition: RouteNode.h:129
uint8_t maxSpeed
Maximum speed allowed on the way.
Definition: RouteNode.h:46
std::vector< Path > paths
List of paths that can in principle be used from this node.
Definition: RouteNode.h:126
ObjectFileRef source
The source object.
Definition: RouteNode.h:88
Definition: OSMScoutTypes.h:58
Definition: RouteNode.h:61