@openhps/geospatial
    Preparing search index...

    Function connectionWeight

    • Computes the travel time of a connection.

      Horizontal connections are pure walking time; stairs and elevators add a per-floor penalty and are excluded when avoidStairs is set.

      Parameters

      Returns number

      The weight in seconds, or Infinity when the connection is inaccessible