Skip to content

Main content

Territory Code Effective Gap Tool

Inspect supplied public code-era endpoints without a territory or geopolitical dataset.

Loading tool…

Description

Return queriedAt-start and end-queriedAt and test start-inclusive/end-exclusive active membership.

Cross-source records often use different labels, time spans, and support conventions. Exact equality and overlap checks describe the supplied metadata; they do not prove that sources measure the same social or geographic concept.

Return queriedAt-start and end-queriedAt and test start-inclusive/end-exclusive active membership.

When to use this tool

Use Territory Code Effective Gap when you need a literal source comparison or coverage diagnostic.

How to use the tool and how it works

  1. Enter effectiveFrom, effectiveUntil, queriedAt. 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 fromStart, untilEnd, active. Inspect active before interpreting the associated values.

Require effectiveUntil no earlier than effectiveFrom. Return queriedAt-start and end-queriedAt and test start-inclusive/end-exclusive active membership.1

Input fieldMeaning and unitsAccepted input
effectiveFromEffective FromRequired. Finite number.
effectiveUntilEffective UntilRequired. Finite number.
queriedAtQueried AtRequired. Finite number.
Output fieldInterpretationReturned shape
fromStartFrom StartRequired. Finite number.
untilEndUntil EndRequired. Finite number.
activeActiveRequired. Boolean.
json
{
  "input": {
    "effectiveFrom": 10,
    "effectiveUntil": 20,
    "queriedAt": 15
  },
  "output": {
    "fromStart": 5,
    "untilEnd": 5,
    "active": true
  }
}

Limitations and assumptions

  • Time coordinates share units; code authority, territorial identity, sovereignty, actual effective records, and legal status are not inferred.
  • 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

Inspect the original source definitions and collection methods. Harmonize conceptual scope and timing before treating matching labels or overlapping records as comparable evidence.

References

  1. Calculation and input contract: global-studies/territory-code-effective-gap — tool.io

Similar or alternative tools