[ -e lines.json ] || wget "https://data.metromobilite.fr/api/lines/json?types=ligne&reseaux=SEM" -O lines.json [ -e routes.json ] || wget "https://data.metromobilite.fr/api/routers/default/index/routes" -O routes.json cat > /tmp/connections <> /tmp/connections jq -rf jq/graphedges.jq lines.json >> /tmp/connections echo '}' >> /tmp/connections circo -Tpng /tmp/connections > connections.png