Skip to content

Main content

Age Friendly City Seat Spacing Margin Tool

Longest along-route gap including endpoints, using a caller-defined rest-stop spacing criterion; accessibility is not certified.

Loading tool…

Description

Include both route endpoints, find the largest adjacent gap, and return maximumGap-largestGap and an inclusive withinRule flag.

Access research relates opportunities and barriers to explicit routes, durations, or eligibility assumptions. A numerical allowance or coverage share describes the supplied model rather than a person's functional ability or actual access experience.

Include both route endpoints, find the largest adjacent gap, and return maximumGap-largestGap and an inclusive withinRule flag.

When to use this tool

Use Age Friendly City Seat Spacing Margin when you need an access-related research calculation from explicit supplied records.

How to use the tool and how it works

  1. Enter routeLength, restStopPositions, maximumGap. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read largestGap, margin, withinRule. Inspect withinRule before interpreting the associated values.

Require nonnegative routeLength and maximumGap and ordered restStopPositions within the route. Include both route endpoints, find the largest adjacent gap, and return maximumGap-largestGap and an inclusive withinRule flag.1

Input fieldMeaning and unitsAccepted input
routeLengthRoute LengthRequired. Finite number.
restStopPositionsRest Stop PositionsRequired. Array of finite number; maximum items 256.
maximumGapMaximum GapRequired. Finite number.
Output fieldInterpretationReturned shape
largestGapLargest gap including route endpoints; endpoints are not verified rest seats.Required. Finite number.
marginSigned allowance under the subtraction convention above.Required. Finite number.
withinRuleWithin RuleRequired. Boolean.
json
{
  "input": {
    "routeLength": 100,
    "restStopPositions": [
      20,
      50,
      80
    ],
    "maximumGap": 35
  },
  "output": {
    "largestGap": 30,
    "margin": 5,
    "withinRule": true
  }
}

Limitations and assumptions

  • Duplicate stops are allowed and endpoints are only reference boundaries, not verified seating; the supplied maximum is not a universal access or safe-walking standard.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Assess real environments and source eligibility information when access decisions are needed. Combine quantitative records with appropriate professional and participant input rather than treating a proxy as a complete assessment.

References

  1. Calculation and input contract: gerontology/age-friendly-city-seat-spacing-margin — tool.io

Similar or alternative tools