Expand description
OverpassImporter is a struct that implements the RailwayGraphImporter trait for importing
railway graph data from the Overpass API.
Structs
- A
Coordinaterepresents a geographic coordinate with latitude and longitude. OverpassImporteris a struct that implements theRailwayGraphImportertrait for importing railway graph data from the Overpass API.- Represents an element of a railway network.
Enums
- Represents the type of a
RailwayElement.
Functions
- Calculate the total length of a sequence of coordinates by summing the distance between consecutive coordinates.
- Counts the number of
Nodeelements in a given vector ofRailwayElements. - Counts the number of
Wayelements in a vector ofRailwayElements. - Create a vector of
RailwayNodes from the providedRailwayElements. - Create railway nodes from two railway elements that share a node ID but do not have an existing common node. The nodes are created by finding the two coordinates in the geometries of the two railway elements that are closest to each other.
- Find the next existing node ID and its index in the
node_indicesHashMap after the givenstartID. - Create a
RailwayGraphfrom a vector ofRailwayElements.