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
- Enter routeLength, restStopPositions, maximumGap. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| routeLength | Route Length | Required. Finite number. |
| restStopPositions | Rest Stop Positions | Required. Array of finite number; maximum items 256. |
| maximumGap | Maximum Gap | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| largestGap | Largest gap including route endpoints; endpoints are not verified rest seats. | Required. Finite number. |
| margin | Signed allowance under the subtraction convention above. | Required. Finite number. |
| withinRule | Within Rule | Required. Boolean. |
{
"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
Similar or alternative tools
- Map Grid Cell Origin Sign
Offset the origin by column plus one half horizontally and signed row plus one half vertically.
- Map Scale Bar Paper Length
Return paperMillimetres as 1000 times groundMetres divided by that denominator.