/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import t from"../../request.js";import{parseUrl as n,asValidOptions as o}from"../utils.js";async function r(r,s,e){const a=n(r),i={...a.query,f:"json",...s.toJSON()},c=o(i,e);return t(a.path+"/distance",c).then(({data:t})=>t&&t.distance)}export{r as distance};
