In the query box, for example:
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“highway=primary”
*/
[out:json][timeout:25];
// gather results
(
// query part for: “highway=primary”
way["highway"="primary"]({{bbox}});
way["highway"="motorway"]({{bbox}});
// query part for: “highway=primary”
way["highway"="secondary"]({{bbox}});
// query part for: “highway=primary”
way["highway"="tertiary"]({{bbox}});
way["highway"="residential"]({{bbox}});
way["highway"="unclassified"]({{bbox}});
);
// print results
out body;
>;
out skel qt;
BUT instead of RUN
==> EXPORT ==> raw data directly from Overpass API
==> save file .json
Install:
npm install -g osmtogeojson
Run:
osmtogeojson output.json > output.geojson