UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 374 B
import t from"../../request.js";import{parseUrl as r,asValidOptions as o}from"../utils.js";import{lengthsToRESTParameters as s}from"../operations/lengths.js";import e from"../support/LengthsParameters.js";async function n(n,m,p){m=e.from(m);const a=s(m),f=r(n),i={...f.query,f:"json",...a},u=o(i,p);return t(f.path+"/lengths",u).then((({data:t})=>t))}export{n as lengths};