mbus-backend
    Preparing search index...

    Function ensureCacheForStops

    • Ensures walking paths between all provided stops are calculated and cached. Fetches missing paths in parallel and updates the disk cache.

      Parameters

      • stopIds: Set<string>

        Set of stop IDs to verify.

      • stopLocations: Record<string, { lat: number; lon: number }>

        Map of Stop ID to coordinates.

      Returns Promise<void>