Skip to content

Instantly share code, notes, and snippets.

@ianlopez1115
Created December 30, 2018 03:45
Show Gist options
  • Save ianlopez1115/9591bf857feecddc253109bbaa1b4b36 to your computer and use it in GitHub Desktop.
Save ianlopez1115/9591bf857feecddc253109bbaa1b4b36 to your computer and use it in GitHub Desktop.
[out:xml][timeout:500];
{{geocodeArea:Pasig}}->.searchArea;
(
way["postal_code"](area.searchArea);
way["addr:postcode"](area.searchArea);
node["addr:postcode"](area.searchArea);
node["postal_code"](area.searchArea);
node["is_in:zip"](area.searchArea);
);
// print results
out body;
>;
out skel qt;
{{style:
way
{ color:black; width:4; opacity:1; }
way[postal_code=1600]
{ color:grey; width:5; }
way[addr:postcode=1600]
{ color:grey; width:5; }
way[postal_code=1601]
{ color:orange; width:5; }
way[addr:postcode=1601]
{ color:orange; width:5; }
way[postal_code=1602]
{ color:yellow; width:5; }
way[addr:postcode=1602]
{ color:yellow; width:5; }
way[postal_code=1603]
{ color:brown; width:5; }
way[addr:postcode=1603]
{ color:brown; width:5; }
way[postal_code=1604]
{ color:silver; width:5; }
way[addr:postcode=1604]
{ color:silver; width:5; }
way[postal_code=1605]
{ color:turquoise; width:5; }
way[addr:postcode=1605]
{ color:turquoise; width:5; }
way[postal_code=1606]
{ color:orange; width:5; }
way[postal_code=1607]
{ color:red; width:5; }
way[postal_code=1608]
{ color:blue; width:5; }
way[postal_code=1609]
{ color:white; width:5; }
way[postal_code=1610]
{ color:green; width:5; }
way[postal_code=1611]
{ color:gold; width:5; }
way[postal_code=1612]
{ color:gold; width:5; }
node
{ color:black; opacity:1; fill-color:black }
node[addr:postcode=1600]
{ color:grey; fill-color:grey }
node[postal_code=1600]
{ color:grey; fill-color:grey }
node[is_in:zip=1600]
{ color:grey; fill-color:grey }
node[addr:postcode=1601]
{ color:orange; fill-color:orange }
node[postal_code=1601]
{ color:orange; fill-color:orange }
node[is_in:zip=1601]
{ color:orange; fill-color:orange }
node[addr:postcode=1602]
{ color:yellow; fill-color:yellow }
node[postal_code=1602]
{ color:yellow; fill-color:yellow }
node[is_in:zip=1602]
{ color:yellow; fill-color:yellow }
node[addr:postcode=1603]
{ color:brown; fill-color:brown }
node[postal_code=1603]
{ color:brown; fill-color:brown }
node[is_in:zip=1603]
{ color:brown; fill-color:brown }
node[addr:postcode=1604]
{ color:silver; fill-color:silver }
node[postal_code=1604]
{ color:silver; fill-color:silver }
node[is_in:zip=1604]
{ color:silver; fill-color:silver }
node[addr:postcode=1605]
{ color:turquoise; fill-color:turquoise }
node[postal_code=1605]
{ color:turquoise; fill-color:turquoise }
node[is_in:zip=1605]
{ color:turquoise; fill-color:turquoise }
node[addr:postcode=1606]
{ color:orange; fill-color:orange }
node[postal_code=1606]
{ color:orange; fill-color:orange }
node[is_in:zip=1606]
{ color:orange; fill-color:orange }
node[addr:postcode=1607]
{ color:red; fill-color:red }
node[postal_code=1607]
{ color:red; fill-color:red }
node[is_in:zip=1607]
{ color:red; fill-color:red }
node[addr:postcode=1608]
{ color:blue; fill-color:blue }
node[postal_code=1608]
{ color:blue; fill-color:blue }
node[is_in:zip=1608]
{ color:blue; fill-color:blue }
node[addr:postcode=1609]
{ color:white; fill-color:white }
node[postal_code=1609]
{ color:white; fill-color:white }
node[is_in:zip=1609]
{ color:white; fill-color:white }
node[addr:postcode=1610]
{ color:green; fill-color:green }
node[postal_code=1610]
{ color:green; fill-color:green }
node[is_in:zip=1610]
{ color:green; fill-color:green }
node[addr:postcode=1611]
{ color:gold; fill-color:gold }
node[postal_code=1611]
{ color:gold; fill-color:gold }
node[is_in:zip=1611]
{ color:gold; fill-color:gold }
node[addr:postcode=1612]
{ color:gold; fill-color:gold }
node[postal_code=1612]
{ color:gold; fill-color:gold }
node[is_in:zip=1612]
{ color:gold; fill-color:gold }
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment