-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdc-rentals-map.html
More file actions
625 lines (598 loc) Β· 32.9 KB
/
Copy pathdc-rentals-map.html
File metadata and controls
625 lines (598 loc) Β· 32.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
<!DOCTYPE html>
<html>
<head>
<title>DC Metro Rentals β Walk Score 80+ | 3BR+</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
#map { height: 100vh; width: 100%; }
.popup-content { max-width: 320px; line-height: 1.5; }
.popup-content h3 { margin: 0 0 6px 0; font-size: 15px; color: #1a1a1a; }
.popup-content .type-badge {
display: inline-block; padding: 2px 8px; border-radius: 12px;
font-size: 11px; font-weight: 600; margin-bottom: 6px;
}
.type-rowhouse { background: #e8f5e9; color: #2e7d32; }
.type-townhouse { background: #e3f2fd; color: #1565c0; }
.type-condo { background: #fff3e0; color: #e65100; }
.type-townhome { background: #f3e5f5; color: #7b1fa2; }
.type-apartment { background: #fce4ec; color: #c62828; }
.popup-content .details { font-size: 13px; color: #444; }
.popup-content .details div { margin: 3px 0; }
.popup-content .rent { font-size: 18px; font-weight: 700; color: #1b5e20; margin: 4px 0; }
.popup-content .walkscore { font-weight: 600; color: #0d47a1; }
.popup-content .highlights { font-size: 12px; color: #666; margin-top: 6px; font-style: italic; }
.popup-content a { color: #1565c0; text-decoration: none; font-weight: 600; }
.popup-content a:hover { text-decoration: underline; }
.popup-content .verify-note { font-size: 11px; color: #e65100; margin-top: 4px; font-weight: 600; }
.legend {
position: absolute; bottom: 30px; left: 10px; z-index: 1000;
background: white; padding: 12px 16px; border-radius: 8px;
box-shadow: 0 2px 12px rgba(0,0,0,0.15); font-size: 12px;
max-height: 80vh; overflow-y: auto;
}
.legend h4 { margin: 0 0 8px 0; font-size: 13px; }
.legend-item { display: flex; align-items: center; margin: 4px 0; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; border: 2px solid white; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.legend-rect { width: 12px; height: 12px; margin-right: 8px; border: 1px solid rgba(0,0,0,0.2); }
.legend-sep { border-top: 1px solid #eee; margin: 6px 0; }
.info-panel {
position: absolute; top: 10px; right: 10px; z-index: 1000;
background: white; padding: 12px 16px; border-radius: 8px;
box-shadow: 0 2px 12px rgba(0,0,0,0.15); font-size: 13px; max-width: 240px;
}
.info-panel h3 { margin: 0 0 4px 0; font-size: 15px; }
.info-panel p { margin: 0; color: #666; font-size: 12px; }
.info-panel .highlight-count { color: #d4a017; font-weight: 700; }
.filter-panel {
position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1000;
background: white; padding: 8px 16px; border-radius: 8px;
box-shadow: 0 2px 12px rgba(0,0,0,0.15); font-size: 12px;
display: flex; gap: 12px; align-items: center;
}
.filter-panel label { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.filter-panel input[type=checkbox] { cursor: pointer; }
.fb-row { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.fb-btn { border: none; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 16px; opacity: 0.6; transition: all 0.15s; }
.fb-btn:hover { opacity: 1; transform: scale(1.15); }
.fb-btn.active { opacity: 1; outline: 2px solid #333; }
.fb-btn.up { background: #e8f5e9; }
.fb-btn.down { background: #fce4ec; }
.fb-text { width: 100%; padding: 4px 8px; border: 1px solid #ddd; border-radius: 6px; font-size: 12px; font-family: inherit; resize: none; }
.fb-send { background: #1b5e20; color: white; border: none; border-radius: 6px; padding: 4px 10px; font-size: 11px; cursor: pointer; font-weight: 600; }
.fb-send:hover { background: #2e7d32; }
.fb-saved { font-size: 11px; color: #4caf50; font-weight: 600; }
.sync-btn {
position: absolute; bottom: 30px; right: 10px; z-index: 1000;
background: #1565c0; color: white; border: none; border-radius: 12px;
padding: 10px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
box-shadow: 0 2px 12px rgba(0,0,0,0.2); display: none;
}
.sync-btn:hover { background: #1976d2; }
.sync-badge {
background: #d32f2f; color: white; border-radius: 50%; padding: 1px 6px;
font-size: 11px; margin-left: 6px;
}
</style>
</head>
<body>
<div id="map"></div>
<div class="legend">
<h4>Property Types</h4>
<div class="legend-item"><div class="legend-dot" style="background:#2e7d32;"></div> Rowhouse</div>
<div class="legend-item"><div class="legend-dot" style="background:#1565c0;"></div> Townhouse</div>
<div class="legend-item"><div class="legend-dot" style="background:#e65100;"></div> Condo</div>
<div class="legend-item"><div class="legend-dot" style="background:#7b1fa2;"></div> Townhome</div>
<div class="legend-item"><div class="legend-dot" style="background:#c62828;"></div> Apartment</div>
<div class="legend-sep"></div>
<h4>Zones</h4>
<div class="legend-item"><div class="legend-rect" style="background:rgba(211,47,47,0.15);"></div> Avoid Zone</div>
<div class="legend-item"><div class="legend-rect" style="background:rgba(255,152,0,0.12);"></div> Caution Zone</div>
<div class="legend-item"><div class="legend-rect" style="background:rgba(76,175,80,0.08);"></div> Target Neighborhood</div>
<div class="legend-sep"></div>
<div class="legend-item">β = Highlighted Pick</div>
</div>
<div class="info-panel">
<h3>π DC Metro Rentals</h3>
<p>Walk Score 80+ Β· 3BR+ Β· 1000+ sqft<br>
20 listings Β· <span class="highlight-count">5 β highlights</span><br>
March 2026 Β· Updated daily<br>
Click markers for details</p>
</div>
<div class="filter-panel">
<label><input type="checkbox" id="toggle-zones" checked> Zones</label>
<label><input type="checkbox" id="toggle-highlights" checked> β Only</label>
<label><input type="checkbox" id="toggle-all" checked> All Listings</label>
</div>
<button id="sync-btn" class="sync-btn" onclick="syncFeedback()" style="display:none;">π¬ Send Feedback</button>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script>
const map = L.map('map').setView([38.905, -77.035], 12);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: 'Β© OpenStreetMap contributors',
maxZoom: 18
}).addTo(map);
const colors = {
'Rowhouse': '#2e7d32',
'Townhouse': '#1565c0',
'Condo': '#e65100',
'Townhome': '#7b1fa2',
'Apartment': '#c62828'
};
function badge(type) {
const cls = 'type-' + type.toLowerCase().replace(/\s/g,'');
return `<span class="type-badge ${cls}">${type}</span>`;
}
function makeNumberedIcon(color, num) {
return L.divIcon({
className: '',
html: `<div style="
width: 30px; height: 30px; border-radius: 50%;
background: ${color}; border: 3px solid white;
box-shadow: 0 2px 6px rgba(0,0,0,0.35);
display: flex; align-items: center; justify-content: center;
color: white; font-size: 13px; font-weight: 700;
">${num}</div>`,
iconSize: [30, 30],
iconAnchor: [15, 15],
popupAnchor: [0, -18]
});
}
function makeStarIcon(color) {
return L.divIcon({
className: '',
html: `<div style="
width: 36px; height: 36px; border-radius: 50%;
background: ${color}; border: 3px solid #d4a017;
box-shadow: 0 2px 8px rgba(212,160,23,0.5), 0 2px 6px rgba(0,0,0,0.35);
display: flex; align-items: center; justify-content: center;
color: white; font-size: 16px; font-weight: 700;
">β</div>`,
iconSize: [36, 36],
iconAnchor: [18, 18],
popupAnchor: [0, -20]
});
}
// ======== EXCLUSION ZONES ========
const zoneLayer = L.layerGroup().addTo(map);
// Avoid: East of Lincoln Park / 13th St NE β Kingman Park east, RFK area
const avoidEastLincoln = L.polygon([
[38.9010, -76.9830], // NW corner (roughly 13th St NE / East Capitol)
[38.9010, -76.9650], // NE corner (beyond RFK)
[38.8830, -76.9650], // SE corner
[38.8830, -76.9830], // SW corner
], {
color: '#d32f2f', fillColor: '#d32f2f', fillOpacity: 0.12,
weight: 2, dashArray: '6,4'
}).addTo(zoneLayer).bindPopup('<b>π« Avoid Zone</b><br>East of Lincoln Park / 13th St NE<br>Kingman Park east, RFK Stadium area');
// Avoid: NY Ave corridor (high crime)
const avoidNYAve = L.polygon([
[38.9050, -76.9900], // W end near NY Ave & Florida Ave
[38.9120, -76.9750], // E along NY Ave
[38.9080, -76.9700], // SE
[38.8990, -76.9850], // SW
], {
color: '#d32f2f', fillColor: '#d32f2f', fillOpacity: 0.12,
weight: 2, dashArray: '6,4'
}).addTo(zoneLayer).bindPopup('<b>π« Avoid Zone</b><br>NY Ave corridor<br>Higher crime area');
// Caution: Shaw core (some blocks)
const cautionShaw = L.polygon([
[38.9130, -77.0220], // NW
[38.9130, -77.0120], // NE
[38.9050, -77.0120], // SE
[38.9050, -77.0220], // SW
], {
color: '#ff9800', fillColor: '#ff9800', fillOpacity: 0.08,
weight: 2, dashArray: '4,4'
}).addTo(zoneLayer).bindPopup('<b>β οΈ Caution Zone</b><br>Shaw core β some blocks<br>Verify block-level safety');
// Avoid: Navy Yard (dealbreaker β "too gentrified, no soul")
const avoidNavyYard = L.polygon([
[38.8810, -77.0050], // NW
[38.8810, -76.9900], // NE
[38.8700, -76.9900], // SE
[38.8700, -77.0050], // SW
], {
color: '#d32f2f', fillColor: '#d32f2f', fillOpacity: 0.10,
weight: 2, dashArray: '6,4'
}).addTo(zoneLayer).bindPopup('<b>π« Avoid Zone</b><br>Navy Yard<br>"Too gentrified, no soul"');
// Avoid: 14th & U St block (too loud)
const avoid14thU = L.polygon([
[38.9185, -77.0340], [38.9185, -77.0290],
[38.9140, -77.0290], [38.9140, -77.0340]
], {
color: '#d32f2f', fillColor: '#d32f2f', fillOpacity: 0.12,
weight: 2, dashArray: '6,4'
}).addTo(zoneLayer).bindPopup('<b>π« Avoid Zone</b><br>14th & U St block<br>Too loud');
// Avoid: Chinatown block (H & 7th St β too loud)
const avoidChinatown = L.polygon([
[38.9010, -77.0240], [38.9010, -77.0180],
[38.8970, -77.0180], [38.8970, -77.0240]
], {
color: '#d32f2f', fillColor: '#d32f2f', fillOpacity: 0.12,
weight: 2, dashArray: '6,4'
}).addTo(zoneLayer).bindPopup('<b>π« Avoid Zone</b><br>Chinatown (H & 7th St)<br>Too loud');
// Target neighborhoods (light green outlines)
const targetCapitolHill = L.polygon([
[38.8960, -77.0050], [38.8960, -76.9830],
[38.8780, -76.9830], [38.8780, -77.0050]
], {
color: '#4caf50', fillColor: '#4caf50', fillOpacity: 0.05,
weight: 2
}).addTo(zoneLayer).bindPopup('<b>β
Target: Capitol Hill</b><br>Best inventory for 3BR');
const targetDupont = L.polygon([
[38.9150, -77.0500], [38.9150, -77.0380],
[38.9070, -77.0380], [38.9070, -77.0500]
], {
color: '#2e7d32', fillColor: '#4caf50', fillOpacity: 0.10,
weight: 3
}).addTo(zoneLayer).bindPopup('<b>π LOVE: Dupont Circle</b><br>Walk Score 97 Β· Teejay\'s favorite');
const targetLogan = L.polygon([
[38.9180, -77.0350], [38.9180, -77.0200],
[38.9100, -77.0200], [38.9100, -77.0350]
], {
color: '#4caf50', fillColor: '#4caf50', fillOpacity: 0.05,
weight: 2
}).addTo(zoneLayer).bindPopup('<b>β
Target: Logan Circle</b><br>Walk Score 95+, premium pricing');
// Lincoln Park marker (reference point)
L.marker([38.8900, -76.9860], {
icon: L.divIcon({
className: '',
html: `<div style="background:white;border:2px solid #333;border-radius:4px;padding:2px 6px;font-size:11px;font-weight:600;white-space:nowrap;">π³ Lincoln Park</div>`,
iconSize: [100, 24], iconAnchor: [50, 12]
})
}).addTo(zoneLayer);
// 13th St NE reference line
L.polyline([
[38.9020, -76.9835],
[38.8820, -76.9835]
], {
color: '#d32f2f', weight: 3, dashArray: '8,6', opacity: 0.7
}).addTo(zoneLayer).bindPopup('<b>13th St NE</b><br>Avoid east of this line');
// ======== FEEDBACK SYSTEM ========
const FB_KEY = 'dc-rentals-feedback';
function getFeedback() { return JSON.parse(localStorage.getItem(FB_KEY) || '{}'); }
function saveFeedback(addr, vote, comment) {
const fb = getFeedback();
fb[addr] = { vote, comment, ts: new Date().toISOString(), sent: false };
localStorage.setItem(FB_KEY, JSON.stringify(fb));
updateSyncBtn();
}
function feedbackHtml(addr) {
const fb = getFeedback()[addr];
const upActive = fb?.vote === 'up' ? 'active' : '';
const downActive = fb?.vote === 'down' ? 'active' : '';
const comment = fb?.comment || '';
const id = addr.replace(/[^a-zA-Z0-9]/g, '_');
return `
<div class="fb-row" style="flex-wrap:wrap;">
<button class="fb-btn up ${upActive}" onclick="window._fbVote('${id}','${addr}','up')">π</button>
<button class="fb-btn down ${downActive}" onclick="window._fbVote('${id}','${addr}','down')">π</button>
<span id="fb-status-${id}" class="fb-saved">${fb ? (fb.sent ? 'β sent' : 'β saved') : ''}</span>
</div>
<div style="margin-top:4px;">
<textarea class="fb-text" id="fb-text-${id}" rows="2" placeholder="Why? (optional)">${comment}</textarea>
</div>
<div style="margin-top:4px;">
<button class="fb-send" onclick="window._fbSave('${id}','${addr}')">Save Feedback</button>
</div>
`;
}
window._fbVote = function(id, addr, vote) {
const fb = getFeedback();
const existing = fb[addr] || {};
existing.vote = existing.vote === vote ? null : vote; // toggle
fb[addr] = { ...existing, ts: new Date().toISOString(), sent: false };
localStorage.setItem(FB_KEY, JSON.stringify(fb));
// Update button styles
document.querySelectorAll(`#fb-status-${id}`).forEach(el => el.textContent = '');
const popup = document.querySelector(`#fb-text-${id}`)?.closest('.popup-content');
if (popup) {
popup.querySelectorAll('.fb-btn.up').forEach(b => b.classList.toggle('active', existing.vote === 'up'));
popup.querySelectorAll('.fb-btn.down').forEach(b => b.classList.toggle('active', existing.vote === 'down'));
}
updateSyncBtn();
};
window._fbSave = function(id, addr) {
const text = document.getElementById(`fb-text-${id}`)?.value || '';
const fb = getFeedback();
const existing = fb[addr] || {};
saveFeedback(addr, existing.vote || 'up', text);
const el = document.getElementById(`fb-status-${id}`);
if (el) el.textContent = 'β saved';
};
function updateSyncBtn() {
const fb = getFeedback();
const unsent = Object.entries(fb).filter(([_,v]) => !v.sent && v.vote);
const btn = document.getElementById('sync-btn');
if (unsent.length > 0) {
btn.style.display = 'block';
btn.innerHTML = `π§ Send Feedback<span class="sync-badge">${unsent.length}</span>`;
} else {
btn.style.display = 'none';
}
}
function syncFeedback() {
const fb = getFeedback();
const unsent = Object.entries(fb).filter(([_,v]) => !v.sent && v.vote);
if (unsent.length === 0) return;
let msg = 'π DC Rental Feedback:\n\n';
unsent.forEach(([addr, v]) => {
const emoji = v.vote === 'up' ? 'π' : 'π';
msg += `${emoji} ${addr}\n`;
if (v.comment) msg += ` β ${v.comment}\n`;
msg += '\n';
});
// Mark as sent
unsent.forEach(([addr]) => { fb[addr].sent = true; });
localStorage.setItem(FB_KEY, JSON.stringify(fb));
updateSyncBtn();
// Open email with pre-filled feedback
const subject = encodeURIComponent('π DC Rental Feedback');
const body = encodeURIComponent(msg);
window.location.href = `mailto:teebot.by.teejay@gmail.com?subject=${subject}&body=${body}`;
}
// ======== LISTINGS ========
const highlightLayer = L.layerGroup().addTo(map);
const regularLayer = L.layerGroup().addTo(map);
// Original research listings (numbered)
const listings = [
{
n: 1, lat: 38.8925, lng: -76.9868,
address: "514 14th St NE", type: "Rowhouse", hood: "Kingman Park, DC",
ws: 85, bd: "3/1.5", sqft: "1,392", rent: "$2,695", ppsf: "$1.94",
parking: "Street (ample)",
highlights: "Updated kitchen & baths, private backyard, fireplace. β οΈ Near avoid zone (14th St NE)",
star: false, verify: "Near east-of-Lincoln-Park avoid zone",
urls: [{label:"Rent.com",href:"https://www.rent.com/r/514-14th-st-ne-washington-dc-lv207010215"}, {label:"Redfin",href:"https://www.redfin.com/DC/Washington/514-14th-St-NE-20002/home/9912927"}]
},
{
n: 2, lat: 38.8940, lng: -76.9785,
address: "246 Division Ave NE", type: "Townhouse", hood: "Kingman Park, DC",
ws: 80, bd: "3/3", sqft: "1,200", rent: "$2,500", ppsf: "$2.08",
parking: "Street; landlord pays internet",
highlights: "Most affordable. β οΈ Inside avoid zone β east of 13th St NE",
star: false, verify: "Inside avoid zone (east of 13th St NE)",
urls: [{label:"Apartments.com",href:"https://www.apartments.com/246-division-ave-ne-washington-dc/0tghlc3/"}, {label:"Redfin",href:"https://www.redfin.com/DC/Washington/246-Division-Ave-NE-20019/home/10129773"}]
},
{
n: 3, lat: 38.9415, lng: -77.0320,
address: "310 Taylor St NW", type: "Rowhouse", hood: "Petworth, DC",
ws: 85, bd: "3/2.5", sqft: "1,728", rent: "$3,599", ppsf: "$2.08",
parking: "Off-street included",
highlights: "Spacious Petworth rowhouse, 13-min to Georgia Ave-Petworth Metro, pets OK",
star: false,
urls: [{label:"Apartments.com",href:"https://www.apartments.com/310-taylor-st-nw-washington-dc/07f6zk1/"}, {label:"Zumper",href:"https://www.zumperrentals.com/address/310-taylor-st-nw-washington-dc-20011-usa"}]
},
{
n: 4, lat: 38.9420, lng: -77.0335,
address: "1419 Upshur St NW #1", type: "Condo", hood: "Petworth, DC",
ws: 85, bd: "3/2.5", sqft: "1,164", rent: "$3,599", ppsf: "$3.09",
parking: "Outdoor parking included",
highlights: "Modern condo, fireplace, in-unit laundry, near Petworth Metro",
star: false,
urls: [{label:"Apartments.com",href:"https://www.apartments.com/1419-upshur-st-nw-washington-dc/yl5k5zr/"}, {label:"Rent.com",href:"https://www.rent.com/r/1419-upshur-st-nw-washington-dc-lv2849561882"}]
},
{
n: 5, lat: 38.9435, lng: -77.0325,
address: "4115 5th St NW", type: "Rowhouse", hood: "Petworth, DC",
ws: 85, bd: "3/2.5", sqft: "1,650", rent: "$3,750", ppsf: "$2.27",
parking: "Street parking",
highlights: "Exposed brick, fireplace, natural light, in-unit laundry",
star: false,
urls: [{label:"Apartments.com",href:"https://www.apartments.com/4115-5th-st-nw-washington-dc/g7cc0jx/"}, {label:"Rent.com",href:"https://www.rent.com/r/4115-5th-st-nw-washington-dc-lv2598893566"}, {label:"Redfin",href:"https://www.redfin.com/DC/Washington/4115-5th-St-NW-20011/unit-1/home/198939610"}]
},
{
n: 6, lat: 38.9445, lng: -77.0340,
address: "4718 15th St NW", type: "Rowhouse", hood: "Petworth, DC",
ws: 85, bd: "3/2", sqft: "1,650", rent: "$3,750", ppsf: "$2.27",
parking: "2 spaces included",
highlights: "Historic 1920 rowhouse, 4 levels, front porch, near Georgia Ave Metro",
star: false,
urls: [{label:"Corcoran",href:"https://www.corcoran.com/listing/for-rent/4718-15th-st-nw-washington-dc-20011/101303649/regionId/141"}, {label:"Redfin",href:"https://www.redfin.com/DC/Washington/4718-15th-St-NW-20011/home/10017189"}]
},
{
n: 7, lat: 38.8838, lng: -76.9955,
address: "216 9th St SE", type: "Townhouse", hood: "Capitol Hill, DC",
ws: 89, bd: "3/2.5", sqft: "~1,300", rent: "$3,800", ppsf: "$2.92",
parking: "Street (RPP zone)",
highlights: "2 blocks from Eastern Market Metro, hardwood, cathedral ceilings, chef's kitchen",
star: false,
urls: [{label:"Apartments.com",href:"https://www.apartments.com/216-9th-st-se-washington-dc/nvvc2gq/"}, {label:"ApartmentList",href:"https://www.apartmentlist.com/dc/washington/216-9th-st-se"}]
},
{
n: 8, lat: 38.8768, lng: -76.9935,
address: "1122 K St SE", type: "Townhouse", hood: "Capitol Hill/Navy Yard, DC",
ws: 87, bd: "3/2.5", sqft: "1,540", rent: "$3,900", ppsf: "$2.53",
parking: "Street parking",
highlights: "Near Navy Yard waterfront. β οΈ Borders Navy Yard avoid zone",
star: false, verify: "Near Navy Yard dealbreaker zone",
urls: [{label:"Redfin",href:"https://www.redfin.com/DC/Washington/1122-K-St-SE-20003/home/9909532"}]
},
{
n: 9, lat: 38.8890, lng: -76.9985,
address: "833 6th St NE", type: "Rowhouse", hood: "Capitol Hill, DC",
ws: 89, bd: "3/1.5", sqft: "1,162", rent: "$4,100", ppsf: "$3.53",
parking: "Street parking",
highlights: "Classic Capitol Hill row, renovated, near Eastern Market, H Street",
star: false,
urls: [{label:"Zillow",href:"https://www.zillow.com/homedetails/833-6th-St-NE-Washington-DC-20002/416934_zpid/"}]
},
// #10 (316 S Columbus St) REMOVED β listing inactive/rented as of Mar 18
{
n: 11, lat: 38.9095, lng: -77.0225,
address: "1003 P St NW, Unit A", type: "Townhouse", hood: "Shaw/Logan Circle, DC",
ws: 92, bd: "3/2", sqft: "1,300", rent: "$4,700", ppsf: "$3.62",
parking: "Street (RPP zone)",
highlights: "Steps from U Street Metro, incredible restaurants. β οΈ Near Shaw caution zone",
star: false, verify: "Borders Shaw caution zone β verify block",
urls: [{label:"Apartments.com",href:"https://www.apartments.com/1003-p-st-nw-washington-dc/vme9kyg/"}, {label:"Apartments.com (Unit A)",href:"https://www.apartments.com/1003-p-st-nw-washington-dc-unit-a/lq3qt6d/"}]
},
{
n: 12, lat: 38.9168, lng: -77.0125,
address: "2607 1st St NW", type: "Townhouse", hood: "LeDroit Park, DC",
ws: 88, bd: "3/2", sqft: "~1,400", rent: "$5,000", ppsf: "$3.57",
parking: "Garage included",
highlights: "New construction, garage parking (rare!), near Shaw-Howard Metro",
star: false,
urls: [{label:"Apartments.com",href:"https://www.apartments.com/stronghold-washington-dc/"}]
},
{
n: 13, lat: 38.9298, lng: -77.0295,
address: "3015 13th St NW", type: "Townhouse", hood: "Columbia Heights, DC",
ws: 93, bd: "3/3", sqft: "~1,600", rent: "$5,950", ppsf: "$3.72",
parking: "2-car private garage",
highlights: "Brand-new 2026 renovation, luxury finishes, 2-car garage (extremely rare in NW DC)",
star: false,
urls: [{label:"Rent.com",href:"https://www.rent.com/r/3015-13th-st-nw-washington-dc-lv2899069192"}]
},
// #14 (Avalon at Arlington Square) REMOVED β π "too corporate and gentrified, not enough soul"
{
n: 15, lat: 38.8745, lng: -77.0035,
address: "Harlow Navy Yard", type: "Townhome", hood: "Navy Yard, DC",
ws: 84, bd: "3/varies", sqft: "~1,200", rent: "$3,500β$3,930", ppsf: "$2.92",
parking: "Garage available",
highlights: "Luxury townhomes, near Nationals Park. β οΈ In Navy Yard avoid zone",
star: false, verify: "Inside Navy Yard dealbreaker zone",
urls: [{label:"Official Site",href:"https://harlowdc.com/"}, {label:"Apartments.com",href:"https://www.apartments.com/harlow-navy-yard-washington-dc/5k9892n/"}]
},
{
n: 16, lat: 38.8825, lng: -77.1715,
address: "Pearson Square", type: "Apartment", hood: "Falls Church, VA",
ws: 89, bd: "3+Den/2", sqft: "1,948", rent: "$3,020", ppsf: "$1.55",
parking: "Garage + bike storage",
highlights: "Nearly 2000 sqft for ~$3K, East Falls Church Metro, top-rated schools",
star: false,
urls: [{label:"Official Site",href:"https://livepearsonsquare.com/"}, {label:"Apartments.com",href:"https://www.apartments.com/pearson-square-falls-church-va/ge3k8dw/"}]
},
{
n: 17, lat: 38.9945, lng: -77.0310,
address: "Colesville Towers", type: "Apartment", hood: "Silver Spring, MD",
ws: 87, bd: "3/2", sqft: "1,234", rent: "$2,363", ppsf: "$1.91",
parking: "Garage",
highlights: "ALL UTILITIES INCLUDED, Silver Spring Metro (Red Line)",
star: false,
urls: [{label:"Official Site",href:"https://www.colesvilletowers.com/"}, {label:"Apartments.com",href:"https://www.apartments.com/colesville-towers-apartments-silver-spring-md/f6zf0qr/"}]
}
];
// Daily scan highlighted listings (β)
const highlighted = [
{
lat: 38.8850, lng: -76.9940,
address: "517 11th St SE Unit 1", type: "Townhouse", hood: "Capitol Hill, DC",
ws: 92, bd: "3/2", sqft: "~TBD", rent: "$3,475", ppsf: "~",
parking: "Street",
highlights: "Renovated, W/D in-unit, hardwood, high ceilings, Jacuzzi tubs, shared rooftop (1 other unit), water incl. 1ST MONTH FREE (~$3,186 effective). Walk to Eastern Market & Union Station. Cats only.",
star: true, found: "Mar 14",
urls: [{label:"Apartments.com",href:"https://www.apartments.com/517-11th-st-se-washington-dc-unit-1/hl6qbp2/"}]
},
{
lat: 38.8815, lng: -76.9855,
address: "730 15th St SE #2", type: "Rowhouse", hood: "Capitol Hill, DC",
ws: 90, bd: "3/1", sqft: "~TBD", rent: "$3,000", ppsf: "~",
parking: "Off-street rear",
highlights: "Brazilian hardwood, granite, original chandeliers, W/D in-unit, pets welcome. 3-min to Potomac Ave Metro. BEST VALUE β only 1 bathroom.",
star: true, found: "Mar 15",
urls: [{label:"Apartments.com",href:"https://www.apartments.com/730-15th-st-se-washington-dc/78vbxew/"}, {label:"Realty One",href:"https://exclusive.myrealtyonegroup.com/rental/brt/dcdc2215004/730-15th-st-se-2-washington-dc-20003"}]
},
{
lat: 38.8960, lng: -76.9830,
address: "707 15th St NE", type: "Townhome", hood: "Trinidad/H St NE, DC",
ws: 95, bd: "3/1.5", sqft: "1,800", rent: "$2,750", ppsf: "$1.53",
parking: "Street",
highlights: "BEST $/sqft IN SEARCH ($1.53). Hardwood, skylight, gas range, W/D, fenced yard, pets. Near H St dining + NoMa Metro.",
star: true, found: "Mar 16",
verify: "Kingman Park/Trinidad border β western edge (H St side). Verify block safety.",
urls: [{label:"Redfin",href:"https://www.redfin.com/DC/Washington/707-15th-St-NE-20002/home/10112166"}]
},
{
lat: 38.9055, lng: -77.0155,
address: "1144 1st St NW", type: "Townhouse", hood: "Mt Vernon Triangle/NoMa, DC",
ws: 92, bd: "3/1.5", sqft: "1,057", rent: "$3,500", ppsf: "$3.31",
parking: "2 off-street spaces (!)",
highlights: "TWO parking spots (huge!), W/D, fenced patio, new LVP + paint. Walk to 3 metros. BEST VALUE WITH PARKING. No pets. 1,057 sqft (barely over min).",
star: true, found: "Mar 17",
urls: [{label:"Zillow",href:"https://www.zillow.com/homedetails/1144-1st-St-NW-Washington-DC-20001/412293_zpid/"}, {label:"Redfin",href:"https://www.redfin.com/DC/Washington/1144-1st-St-NW-20001/home/9887725"}]
},
{
lat: 38.8867, lng: -76.9960,
address: "1351 A St NE", type: "Townhouse", hood: "Capitol Hill, DC",
ws: 85, bd: "3/2.5", sqft: "1,590", rent: "$4,900", ppsf: "$3.08",
parking: "Street",
highlights: "1917 townhouse with character, fenced yard, near Stadium-Armory Metro. At top of budget.",
star: true, found: "Mar 13",
urls: [{label:"Apartments.com",href:"https://www.apartments.com/1351-a-st-ne-washington-dc/8c06s20/"}, {label:"Rent.com",href:"https://www.rent.com/r/1351-a-st-ne-washington-dc-lv1523669350"}]
}
];
// Render all listings
listings.forEach(l => {
const color = colors[l.type] || '#666';
const icon = makeNumberedIcon(color, l.n);
let popup = `
<div class="popup-content">
<h3>#${l.n} β ${l.address}</h3>
${badge(l.type)}
<div class="rent">${l.rent}/mo</div>
<div class="details">
<div>π ${l.hood} Β· <span class="walkscore">Walk Score ${l.ws}</span></div>
<div>π ${l.bd} Β· π ${l.sqft} sqft Β· π²${l.ppsf}/sqft</div>
<div>π
ΏοΈ ${l.parking}</div>
</div>
<div class="highlights">${l.highlights}</div>
${l.verify ? `<div class="verify-note">β οΈ ${l.verify}</div>` : ''}
${l.urls ? `<div style="margin-top:8px;font-size:13px;">${l.urls.map(u => `<a href="${u.href}" target="_blank" rel="noopener">${u.label}</a>`).join(' Β· ')}</div>` : ''}
${feedbackHtml(l.address)}
</div>
`;
L.marker([l.lat, l.lng], { icon }).addTo(regularLayer).bindPopup(popup, { maxWidth: 340 });
});
// Render highlighted listings (β)
highlighted.forEach(l => {
const color = colors[l.type] || '#666';
const icon = makeStarIcon(color);
let popup = `
<div class="popup-content">
<h3>β ${l.address}</h3>
${badge(l.type)}
<div class="rent">${l.rent}/mo</div>
<div class="details">
<div>π ${l.hood} Β· <span class="walkscore">Walk Score ${l.ws}</span></div>
<div>π ${l.bd} Β· π ${l.sqft} sqft Β· π²${l.ppsf}/sqft</div>
<div>π
ΏοΈ ${l.parking}</div>
<div>π
Found: ${l.found}</div>
</div>
<div class="highlights">${l.highlights}</div>
${l.verify ? `<div class="verify-note">β οΈ ${l.verify}</div>` : ''}
${l.urls ? `<div style="margin-top:8px;font-size:13px;">${l.urls.map(u => `<a href="${u.href}" target="_blank" rel="noopener">${u.label}</a>`).join(' Β· ')}</div>` : ''}
${feedbackHtml(l.address)}
</div>
`;
L.marker([l.lat, l.lng], { icon }).addTo(highlightLayer).bindPopup(popup, { maxWidth: 340 });
});
// Fit bounds to all markers
const allPoints = [
...listings.map(l => [l.lat, l.lng]),
...highlighted.map(l => [l.lat, l.lng])
];
map.fitBounds(L.latLngBounds(allPoints), { padding: [40, 40] });
// Filter controls
document.getElementById('toggle-zones').addEventListener('change', function() {
this.checked ? map.addLayer(zoneLayer) : map.removeLayer(zoneLayer);
});
document.getElementById('toggle-highlights').addEventListener('change', function() {
if (this.checked) {
map.addLayer(highlightLayer);
} else {
map.removeLayer(highlightLayer);
}
});
document.getElementById('toggle-all').addEventListener('change', function() {
this.checked ? map.addLayer(regularLayer) : map.removeLayer(regularLayer);
});
// Initialize sync button on load
updateSyncBtn();
</script>
</body>
</html>