Skip to content

Instantly share code, notes, and snippets.

@ianlopez1115
Last active October 1, 2023 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianlopez1115/a00b5bf4be4ada423b39835210c39b9c to your computer and use it in GitHub Desktop.
Save ianlopez1115/a00b5bf4be4ada423b39835210c39b9c to your computer and use it in GitHub Desktop.
[out:xml][timeout:500];
{{geocodeArea:Manila}}->.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=1000]
{ color:grey; width:5; }
way[addr:postcode=1000]
{ color:grey; width:5; }
way[postal_code=1001]
{ color:orange; width:5; }
way[addr:postcode=1001]
{ color:orange; width:5; }
way[postal_code=1002]
{ color:yellow; width:5; }
way[addr:postcode=1002]
{ color:yellow; width:5; }
way[postal_code=1003]
{ color:brown; width:5; }
way[addr:postcode=1003]
{ color:brown; width:5; }
way[postal_code=1004]
{ color:silver; width:5; }
way[addr:postcode=1004]
{ color:silver; width:5; }
way[postal_code=1005]
{ color:turquoise; width:5; }
way[addr:postcode=1005]
{ color:turquoise; width:5; }
way[postal_code=1006]
{ color:orange; width:5; }
way[addr:postcode=1006]
{ color:orange; width:5; }
way[postal_code=1007]
{ color:red; width:5; }
way[addr:postcode=1007]
{ color:red; width:5; }
way[postal_code=1008]
{ color:blue; width:5; }
way[addr:postcode=1008]
{ color:blue; width:5; }
way[postal_code=1009]
{ color:silver; width:5; }
way[addr:postcode=1009]
{ color:silver; width:5; }
way[postal_code=1010]
{ color:green; width:5; }
way[addr:postcode=1010]
{ color:green; width:5; }
way[postal_code=1011]
{ color:gold; width:5; }
way[addr:postcode=1011]
{ color:gold; width:5; }
way[postal_code=1012]
{ color:gold; width:5; }
way[addr:postcode=1012]
{ color:gold; width:5; }
way[postal_code=1013]
{ color:maroon; width:5; }
way[addr:postcode=1013]
{ color:maroon; width:5; }
way[postal_code=1014]
{ color:red; width:5; }
way[addr:postcode=1014]
{ color:red; width:5; }
way[postal_code=1016]
{ color:green; width:5; }
way[addr:postcode=1016]
{ color:green; width:5; }
way[postal_code=1017]
{ color:white; width:5; }
way[addr:postcode=1017]
{ color:white; width:5; }
way[postal_code=1018]
{ color:purple; width:5; }
way[addr:postcode=1018]
{ color:purple; width:5; }
node
{ color:black; opacity:1; fill-color:black }
node[addr:postcode=1000]
{ color:grey; fill-color:grey }
node[postal_code=1000]
{ color:grey; fill-color:grey }
node[is_in:zip=1000]
{ color:grey; fill-color:grey }
node[addr:postcode=1001]
{ color:orange; fill-color:orange }
node[postal_code=1001]
{ color:orange; fill-color:orange }
node[is_in:zip=1001]
{ color:orange; fill-color:orange }
node[addr:postcode=1002]
{ color:yellow; fill-color:yellow }
node[postal_code=1002]
{ color:yellow; fill-color:yellow }
node[is_in:zip=1002]
{ color:yellow; fill-color:yellow }
node[addr:postcode=1003]
{ color:brown; fill-color:brown }
node[postal_code=1003]
{ color:brown; fill-color:brown }
node[is_in:zip=1003]
{ color:brown; fill-color:brown }
node[addr:postcode=1004]
{ color:silver; fill-color:silver }
node[postal_code=1004]
{ color:silver; fill-color:silver }
node[is_in:zip=1004]
{ color:silver; fill-color:silver }
node[addr:postcode=1005]
{ color:turquoise; fill-color:turquoise }
node[postal_code=1005]
{ color:turquoise; fill-color:turquoise }
node[is_in:zip=1005]
{ color:turquoise; fill-color:turquoise }
node[addr:postcode=1006]
{ color:orange; fill-color:orange }
node[postal_code=1006]
{ color:orange; fill-color:orange }
node[is_in:zip=1006]
{ color:orange; fill-color:orange }
node[addr:postcode=1007]
{ color:red; fill-color:red }
node[postal_code=1007]
{ color:red; fill-color:red }
node[is_in:zip=1007]
{ color:red; fill-color:red }
node[addr:postcode=1008]
{ color:blue; fill-color:blue }
node[postal_code=1008]
{ color:blue; fill-color:blue }
node[is_in:zip=1008]
{ color:blue; fill-color:blue }
node[addr:postcode=1009]
{ color:silver; fill-color:silver }
node[postal_code=1009]
{ color:silver; fill-color:silver }
node[is_in:zip=1009]
{ color:silver; fill-color:silver }
node[addr:postcode=1010]
{ color:green; fill-color:green }
node[postal_code=1010]
{ color:green; fill-color:green }
node[is_in:zip=1010]
{ color:green; fill-color:green }
node[addr:postcode=1011]
{ color:gold; fill-color:gold }
node[postal_code=1011]
{ color:gold; fill-color:gold }
node[is_in:zip=1011]
{ color:gold; fill-color:gold }
node[addr:postcode=1012]
{ color:gold; fill-color:gold }
node[postal_code=1012]
{ color:gold; fill-color:gold }
node[is_in:zip=1012]
{ color:gold; fill-color:gold }
node[addr:postcode=1013]
{ color:maroon; fill-color:maroon }
node[postal_code=1013]
{ color:maroon; fill-color:maroon }
node[is_in:zip=1013]
{ color:maroon; fill-color:maroon }
node[addr:postcode=1014]
{ color:red; fill-color:red }
node[postal_code=1014]
{ color:red; fill-color:red }
node[is_in:zip=1014]
{ color:red; fill-color:red }
node[addr:postcode=1016]
{ color:green; fill-color:green }
node[postal_code=1016]
{ color:green; fill-color:green }
node[is_in:zip=1016]
{ color:green; fill-color:green }
node[addr:postcode=1017]
{ color:white; fill-color:white }
node[postal_code=1017]
{ color:white; fill-color:white }
node[is_in:zip=1017]
{ color:white; fill-color:white }
node[addr:postcode=1018]
{ color:purple; fill-color:purple }
node[postal_code=1018]
{ color:purple; fill-color:purple }
node[is_in:zip=1018]
{ color:purple; fill-color:purple }
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment