Description
Convert a supplied provider distance between kilometres and international miles.
Health-policy records use explicit benefit codes, payment units, directory dates and administrative periods. A supplied cap, deductible or covered-code list defines a bookkeeping scenario; determining actual eligibility or obligations requires the governing policy. Date boundaries, currency bases and distance units must remain explicit.
Convert a supplied provider distance between kilometres and international miles.
When to use this tool
Use Provider Network Distance Unit when checking the stated caller-defined policy, benefit, directory or period convention.
How to use the tool and how it works
- Enter distance, inputUnit. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read kilometers, miles. Use the output convention below.
Require distance>=0 and inputUnit exactly km or mi. Convert between kilometres and international miles using 1 mile=1.609344 kilometres; return both values.1
The international mile is 1609.344 metres. This conversion uses that unit rather than a nautical or historical survey mile.2
| Input field | Meaning and units | Accepted input |
|---|---|---|
| distance | Distance | Required. Finite number; minimum 0. |
| inputUnit | Exactly km or mi; mi means the international mile, exactly 1.609344 km. | Required. Text; one of "km", "mi"; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| kilometers | Kilometers | Required. Finite number. |
| miles | Miles | Required. Finite number. |
{
"input": {
"distance": 10,
"inputUnit": "mi"
},
"output": {
"kilometers": 16.09344,
"miles": 10
}
} Limitations and assumptions
- Distance is supplied, not routed or geocoded; the result does not establish provider accessibility, travel time or network adequacy.
- 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
Consult authoritative current policy and verified source records with the responsible health, financial or legal professionals for actual eligibility, obligations or access decisions.
References
Similar or alternative tools
- Network Directory Listed Date Age
Calculate the signed calendar age of a dated provider-directory listing.
- Provider Payment Unit Label
Label an explicit provider payment rate and unit without determining a reimbursement method or entitlement.