Created
December 9, 2022 21:10
-
-
Save patte/cdb481c6ffb17a3dfe622173a99777c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var topojsonClient = require("topojson-client") | |
ch = await fetch("https://swiss-maps.vercel.app/api/v0?format=topojson&projection=wgs84&year=2022&shapes=lakes").then(res => res.json()) | |
geo = topojsonClient.feature(ch, ch.objects.lakes) | |
console.log(JSON.stringify(geo, null, 2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment