Skip to content

Commit

Permalink
Add historic districts
Browse files Browse the repository at this point in the history
  • Loading branch information
evadecker committed Jul 28, 2022
1 parent 27bc81d commit b2033a6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
13 changes: 10 additions & 3 deletions script/datasets.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"id": "fb",
"datasetName": "Fire Battilion",
"datasetName": "Fire Battalions",
"url": "https://data.cityofnewyork.us/api/geospatial/uh7r-6nya?method=export&format=Shapefile",
"nameCol": "fire_bn",
"nameAlt": null
Expand Down Expand Up @@ -99,16 +99,23 @@
},
{
"id": "nta",
"datasetName": "Neighborhood Tabulation Area",
"datasetName": "Neighborhood Tabulation Areas",
"url": "https://data.cityofnewyork.us/api/geospatial/cpf4-rkhq?method=export&format=Shapefile",
"nameCol": "ntaname",
"nameAlt": "ntacode"
},
{
"id": "zipcode",
"datasetName": "Zip Code",
"datasetName": "Zip Codes",
"url": "https://data.cityofnewyork.us/download/i8iw-xf4u/application%2Fzip",
"nameCol": "ZIPCODE",
"nameAlt": null
},
{
"id": "hd",
"datasetName": "Historic Districts",
"url": "https://data.cityofnewyork.us/api/geospatial/xbvj-gfnw?method=export&format=Shapefile",
"nameCol": "area_name",
"nameAlt": null
}
]
10 changes: 9 additions & 1 deletion src/assets/boundaries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export type BoundaryId =
| 'sa'
| 'sd'
| 'ss'
| 'zipcode';
| 'zipcode'
| 'hd';

export interface ILayer {
/** Human-readable name, e.g. "Community District" */
Expand Down Expand Up @@ -122,6 +123,13 @@ export const layers: ILayers = {
icon: '🏘',
formatContent: name => format_default(name)
},
hd: {
name: 'Historic District',
name_plural: 'Historic Districts',
sql: `SELECT * FROM all_bounds WHERE id = 'hd'`,
icon: '🗝',
formatContent: name => format_default(name)
},
bid: {
name: 'Business Improvement District',
name_plural: 'Business Improvement Districts',
Expand Down

0 comments on commit b2033a6

Please sign in to comment.