const https = require('https'); const lat = 51.4332; const lng = 7.6616; const size = 0.00001; const bbox = `${lat - size},${lng - size},${lat + size},${lng + size},urn:ogc:def:crs:EPSG::4326`; const url = `https://www.wfs.nrw.de/geobasis/wfs_nw_alkis_vereinfacht?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=ave:Nutzung&BBOX=${bbox}&COUNT=1`; https.get(url, (res) => { let data = ''; res.on('data', (chunk) => data += chunk); res.on('end', () => { const nutzartMatch = data.match(/]*>(.*?)<\/nutzart>/s); const bezMatch = data.match(/]*>(.*?)<\/bez>/s); console.log("Nutzart:", nutzartMatch ? nutzartMatch[1] : "not found"); console.log("Bez:", bezMatch ? bezMatch[1] : "not found"); }); }).on('error', (e) => { console.error(e); });