Este guia explica como utilizar o recurso de filtros por
Overpass API no modo especialista do JOSM para baixar
apenas vias de circulação (elementos com a tag
highway
).
Preferências (F12)
→ Aba
Interface
Arquivo > Baixar dados...
ou
Ctrl+Shift+Down
Overpass API
na janela de downloadbbox
na consultaCole o seguinte código no campo de consulta:
[out:xml][timeout:25];
way["highway"](bbox);
out body;
>;
out skel qt;
🛣️ Exemplos de filtros específicos
🛤️ Apenas rodovias principais (primary)
[out:xml][timeout:25];
way["highway"="primary"](bbox);
out body;
>;
out skel qt;
🚫 Excluir caminhos de pedestres e trilhas
[out:xml][timeout:25];
way["highway"]
["highway"!="footway"]
["highway"!="path"]
["highway"!="cycleway"]
["highway"!="track"]
(bbox);
out body;
>;
out skel qt;
🏙️ Excluir caminhos de pedestres e trilhas
[out:xml][timeout:25];
way["highway"]
["highway"!="footway"]
["highway"!="path"]
["highway"!="cycleway"]
["highway"!="track"]
(bbox);
out body;
>;
out skel qt;
🏘️ Vias urbanas comuns (residential, service, unclassified)
[out:xml][timeout:25];
way["highway"~"^(residential|service|unclassified)$"](bbox);
out body;
>;
out skel qt;
🚴 Ciclovias
[out:xml][timeout:25];
way["highway"="cycleway"](bbox);
out body;
>;
out skel qt;
🚂 Ferrovias
[out:xml][timeout:25];
way["railway"](bbox);
out body;
>;
out skel qt;
🏙️ Áreas urbanas (polígonos com landuse=residential)
[out:xml][timeout:25];
way["landuse"="residential"](bbox);
out body;
>;
out skel qt;
🏫 Pontos de interesse: escolas
[out:xml][timeout:25];
node["amenity"="school"](bbox);
out body;
✅ Dicas
Evite áreas muito grandes para não sobrecarregar o servidor
Teste suas consultas em Overpass Turbo antes de usar no JOSM