mbus-backend
    Preparing search index...

    Function loadMap

    • Loads and parses the GraphML map file into a usable graph structure.

      • Performs the following steps:
      1. Reads the XML file.
      2. Extracts Nodes (lat/lon).
      3. Extracts Edges (filtering for walkable types like 'footway', 'path').
      4. Parses edge geometry (WKT) if available.
      5. Prunes disconnected components, keeping only the largest connected subgraph.

      Returns { graph: Map<string, GraphMLEdge[]>; nodes: Map<string, GraphMLNode> }

      An object containing the map of Nodes and the Adjacency List (graph).