Skip to content

Instantly share code, notes, and snippets.

@djnugent
Last active March 15, 2026 21:46
Show Gist options
  • Select an option

  • Save djnugent/f8199f8660f839eb10029a79cbcec592 to your computer and use it in GitHub Desktop.

Select an option

Save djnugent/f8199f8660f839eb10029a79cbcec592 to your computer and use it in GitHub Desktop.
Neighborhood Query: Overpass Turbo
/*
APARTMENT HUNTING QUERY
*/
[out:json];
(
// 🚲 Bike paths & designated lanes
way["highway"="cycleway"]({{bbox}});
way["bicycle"="designated"]({{bbox}});
// πŸ” Restaurants
nwr["amenity"="restaurant"]({{bbox}});
// πŸ›’ Grocery stores
nwr["shop"~"supermarket|grocery"]({{bbox}});
// β˜• Cafes
nwr["amenity"="cafe"]({{bbox}});
// 🌳 Parks
nwr["leisure"="park"]({{bbox}});
// 🚌 Bus stops
node["highway"="bus_stop"]({{bbox}});
// πŸš‡ Rail / Subway
node["railway"~"station|subway_entrance|tram_stop"]({{bbox}});
way["railway"~"subway|tram|light_rail"]({{bbox}});
// πŸ₯ Work
nwr["amenity"="hospital"]["name"~"Deacon|Harvard|Beth Israel",i]({{bbox}});
);
out center;
out geom;
{{style:
/* 1. Global reset: kill all default rendering */
node, way, relation {
symbol-size: 0;
symbol-stroke-width: 0;
symbol-fill-color: transparent;
color: transparent;
fill-color: transparent;
opacity: 0;
fill-opacity: 0;
}
/* 2. 🚲 Bike paths - Orange lines */
way[highway=cycleway], way[bicycle=designated]
{ color: orange; width: 4; opacity: 0.9; }
/* 3. πŸ” Restaurants - Magenta circles */
node[amenity=restaurant], way[amenity=restaurant]::center
{ symbol-shape: circle; symbol-size: 5; symbol-fill-color: magenta; symbol-fill-opacity: 0.7; opacity: 1; }
/* 4. β˜• Cafes - Brown circles */
node[amenity=cafe], way[amenity=cafe]::center
{ symbol-shape: circle; symbol-size: 4; symbol-fill-color: #8b4513; symbol-fill-opacity: 0.9; opacity: 1; }
/* 5. πŸ›’ Grocery Stores - Green circles */
node[shop], way[shop]::center
{ symbol-shape: circle; symbol-size: 8; symbol-fill-color: #008000; symbol-fill-opacity: 0.9; opacity: 1; }
/* 6. 🌳 Parks - Green areas */
way[leisure=park], relation[leisure=park]
{ fill-color: #ccffcc; color: #008000; fill-opacity: 0.7; opacity: 1; width: 2; }
/* 7. 🚌 Bus stops - Tiny black dots */
node[highway=bus_stop]
{ symbol-shape: circle; symbol-size: 3; symbol-fill-color: black; symbol-fill-opacity: 0.9; opacity: 1; }
/* 8. πŸš‡ Subway - Blue thick lines */
way[railway=subway]
{ color: blue; width: 6; opacity: 1; }
node[railway=station], node[railway=subway_entrance], node[railway=train_station_entrance],
way[railway=station]::center, way[railway=subway_entrance]::center
{ symbol-shape: circle; symbol-size: 4; symbol-fill-color: blue; symbol-fill-opacity: 0.9; opacity: 1; }
/* 9. πŸšƒ Light rail - Blue dashed lines */
way[railway=tram], way[railway=light_rail]
{ color: blue; width: 4; dashes: 5,20; opacity: 1; }
/* 10. πŸ₯ Work - Purple highlight */
node[amenity=hospital], way[amenity=hospital]::center, relation[amenity=hospital]
{ symbol-shape: circle; symbol-size: 10; symbol-fill-color: purple; symbol-fill-opacity: 0.9; opacity: 1; }
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment