Expand description

OverpassImporter is a struct that implements the RailwayGraphImporter trait for importing railway graph data from the Overpass API.

Structs

  • A Coordinate represents a geographic coordinate with latitude and longitude.
  • OverpassImporter is a struct that implements the RailwayGraphImporter trait for importing railway graph data from the Overpass API.
  • Represents an element of a railway network.

Enums

Functions

  • Calculate the total length of a sequence of coordinates by summing the distance between consecutive coordinates.
  • Counts the number of Node elements in a given vector of RailwayElements.
  • Counts the number of Way elements in a vector of RailwayElements.
  • Create a vector of RailwayNodes from the provided RailwayElements.
  • 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_indices HashMap after the given start ID.
  • Create a RailwayGraph from a vector of RailwayElements.