Swiss Maps Generator

A free tool to generate TopoJSON or SVG from Swisstopo geodata.

Documentation

Location

swiss-maps-nir0zy17i-ixt1.vercel.app/api/v0

Parameters

Name
Description
Value
Example value
format
Data format.
topojsonsvg
topojson
projection
Map projection
wgs84somerc
somerc
shapes
Which kinds of shapes you want to include (comma-separation).
countrylakescantonsmunicipalities
country,cantons,lakes
year
The data from specific year.
number
2022
simplify
The data simplication extent.
undefined0 ~ 100
0
download
Whether to download as a file or raw data
undefinedboolean
undefined
width
SVG export width
number
900
height
SVG export height
number
600

Examples

Get swiss canton topojson data in year 2022
swiss-maps-nir0zy17i-ixt1.vercel.app/api/v0?year=2022&shapes=cantons&format=topojson
Download the data
Get swiss country topojson data with lake
swiss-maps-nir0zy17i-ixt1.vercel.app/api/v0?shapes=cantons,lakes&format=topojson
Download the data
Get swiss municipalities topojson data with 50% simplication
swiss-maps-nir0zy17i-ixt1.vercel.app/api/v0?shapes=municipalities&format=topojson&simplify=50%
Download the data
Swiss Maps is open source and freely available on GitHub.
See GitHub repo

Swiss Maps is created by Interactive Things.