Skip to content

Commit 3865c05

Browse files
committed
2025 Boundary Update
1 parent 1033ce5 commit 3865c05

File tree

5 files changed

+20
-66
lines changed

5 files changed

+20
-66
lines changed

Untitled-1

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/assets/boundaries/index.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type BoundaryId =
2222
| 'zipcode'
2323
| 'hd'
2424
| 'ibz'
25-
| 'cc_upcoming';
25+
| 'cc';
2626

2727
export interface ILayer {
2828
/** Human-readable name, e.g. "Community District" */
@@ -62,7 +62,7 @@ export const layers: ILayers = {
6262
'Community Boards advise on land use and zoning, participate in the city budget process, and address service delivery in their district. They have up to 50 up to 50 volunteer members appointed by the borough president.',
6363
description_url: 'https://communityprofiles.planning.nyc.gov/',
6464
// Remove parks
65-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=cd',
65+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=cd',
6666
icon: '💬',
6767
formatUrl: name => get_cd_url(name[0], name.substring(1, 3)),
6868
formatContent: name => format_cd(name[0], name.substring(1, 3))
@@ -73,7 +73,7 @@ export const layers: ILayers = {
7373
description:
7474
'A police precinct is a geographical area patrolled by the NYPD. The term "precinct" may also refer to the main police station for such a geographical area.',
7575
description_url: 'https://www1.nyc.gov/site/nypd/index.page',
76-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=pp',
76+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=pp',
7777
icon: '🚔',
7878
formatUrl: precinct => get_pp_url(parseInt(precinct)),
7979
formatContent: name => format_default(name)
@@ -84,7 +84,7 @@ export const layers: ILayers = {
8484
description:
8585
'For operations management, the Department of Sanitation (DSNY) divides the city into 59 Sanitation Districts. The boundary for each district is congruent with the Community District boundary.',
8686
description_url: 'https://www1.nyc.gov/assets/dsny/site/home',
87-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=dsny',
87+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=dsny',
8888
icon: '🗑',
8989
formatContent: name => format_default(name)
9090
},
@@ -93,7 +93,7 @@ export const layers: ILayers = {
9393
name_plural: 'Fire Battalions',
9494
description:
9595
'A Fire Battalion consists of several fire stations and multiple fire companies, and is led by a Battalion Chief.',
96-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=fb',
96+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=fb',
9797
icon: '🔥',
9898
formatContent: name => format_default(name)
9999
},
@@ -103,7 +103,7 @@ export const layers: ILayers = {
103103
description:
104104
'A School District is a geographical area with multiple schools.',
105105
description_url: 'https://www.schools.nyc.gov/',
106-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=sd',
106+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=sd',
107107
icon: '🎓',
108108
formatContent: name => format_default(name)
109109
},
@@ -112,17 +112,17 @@ export const layers: ILayers = {
112112
name_plural: 'Health Center Districts',
113113
description:
114114
'Health Center Districts are aggregates of health areas and are used for reporting health statistics. They were created by the NYC Department of Health and Mental Hygiene (DOHMH).',
115-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=hc',
115+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=hc',
116116
icon: '🩺',
117117
formatContent: name => format_default(name)
118118
},
119-
cc_upcoming: {
119+
cc: {
120120
name: 'City Council Districts',
121121
name_plural: 'City Council Districts',
122122
description:
123123
'The New York City Council is the lawmaking body of New York City. It has 51 members from 51 council districts throughout the five boroughs. The district lines have been updated in 2024.',
124124
description_url: 'https://council.nyc.gov/',
125-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=cc_upcoming',
125+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=cc',
126126
icon: '🍎',
127127
formatUrl: name => `https://council.nyc.gov/district-${name}`,
128128
formatContent: name => format_default(name)
@@ -133,7 +133,7 @@ export const layers: ILayers = {
133133
description:
134134
'Congressional Districts are the 435 regions from which voting representatives are elected to the U.S. House of Representatives.',
135135
description_url: 'https://www.house.gov/',
136-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=nycongress',
136+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=nycongress',
137137
icon: '🇺🇸',
138138
formatUrl: name => `https://www.govtrack.us/congress/members/NY/${name}`,
139139
formatContent: name => format_default(name)
@@ -144,7 +144,7 @@ export const layers: ILayers = {
144144
description:
145145
'The New York State Assembly is the lower house of the New York State Legislature, with the New York State Senate being the upper house. There are 150 seats in the Assembly.',
146146
description_url: 'https://nyassembly.gov/',
147-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=sa',
147+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=sa',
148148
icon: '🧑‍⚖️',
149149
formatUrl: name =>
150150
`https://ballotpedia.org/New_York_State_Assembly_District_${name}`,
@@ -156,7 +156,7 @@ export const layers: ILayers = {
156156
description:
157157
'The New York State Senate is the upper house of the New York State Legislature; the New York State Assembly is its lower house. Its members are elected to two-year terms; there are no term limits. There are 63 seats in the Senate.',
158158
description_url: 'https://www.nysenate.gov/',
159-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=ss',
159+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=ss',
160160
icon: '⚖️',
161161
formatUrl: name => `https://www.nysenate.gov/district/${name}`,
162162
formatContent: name => format_default(name)
@@ -166,15 +166,15 @@ export const layers: ILayers = {
166166
name_plural: 'Neighborhood Tabulation Areas',
167167
description:
168168
'Neighborhood Tabulation Areas are aggregations of census tracts, adapted as a method of presenting the U.S. Census Bureau’s American Community Survey (ACS).',
169-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=nta',
169+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=nta',
170170
icon: '🏘',
171171
formatContent: name => format_default(name)
172172
},
173173
// @ts-ignore
174174
hd: {
175175
name: 'Historic District',
176176
name_plural: 'Historic Districts',
177-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=hd',
177+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=hd',
178178
icon: '🗝',
179179
formatContent: name => format_default(name)
180180
},
@@ -184,7 +184,7 @@ export const layers: ILayers = {
184184
description:
185185
'A Business Improvement District (BID) is a geographical area where local stakeholders oversee and fund the maintenance, improvement, and promotion of their commercial district, going above and beyond those typically provided by the city.',
186186
description_url: 'https://www1.nyc.gov/site/sbs/neighborhoods/bids.page',
187-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=bid',
187+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=bid',
188188
icon: '💸',
189189
formatContent: name => format_bid(name)
190190
},
@@ -194,7 +194,7 @@ export const layers: ILayers = {
194194
description:
195195
'A Industrial Business Zone (IBZ) is a geographic area that serve as safe havens for manufacturing and industrial firms.',
196196
description_url: 'https://edc.nyc/industry/industrial-and-manufacturing',
197-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=ibz',
197+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=ibz',
198198
icon: '🏭',
199199
formatContent: name => format_default(name)
200200
},
@@ -203,7 +203,7 @@ export const layers: ILayers = {
203203
name_plural: 'Zipcodes',
204204
description:
205205
'A ZIP Code is a postal code used by the United States Postal Service (USPS).',
206-
apiUrl: 'https://bm-api.beta.nyc/bounds?id=zipcode',
206+
apiUrl: 'https://bm-api.beta.nyc/bounds_new?id=zipcode',
207207
icon: '📫',
208208
formatContent: name => format_default(name)
209209
}

src/components/Sidebar/AddressDetails.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
async function queryAllDistrictsForCoordinates(lng: number, lat: number) {
1717
districtsIntersectingAddress = [];
1818
isLoading = true;
19-
const intersectsUrl = `https://bm-api.beta.nyc/pt_int?p_lng=${lng}&p_lat=${lat}`;
19+
const intersectsUrl = `https://bm-api.beta.nyc/pt_int_new?p_lng=${lng}&p_lat=${lat}`;
2020
const options = {
2121
headers: {
2222
'Accept': 'application/geo+json'

src/components/Sidebar/CoordinateDetails.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
async function queryAllDistrictsForCoordinates(lngLat: LngLat) {
2121
districtsIntersectingAddress = [];
2222
isLoading = true;
23-
const intersectsUrl = `https://bm-api.beta.nyc/pt_int?p_lng=${lngLat.lng}&p_lat=${lngLat.lat}`;
23+
const intersectsUrl = `https://bm-api.beta.nyc/pt_int_new?p_lng=${lngLat.lng}&p_lat=${lngLat.lat}`;
2424
const options = {
2525
headers: {
2626
'Accept': 'application/geo+json'

src/components/Sidebar/DistrictDetails.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
boundId: string,
3434
featureId: string
3535
) {
36-
const intersectsUrl = `https://bm-api.beta.nyc/district_int?boundid=${boundId}&featureid=${featureId}`;
36+
const intersectsUrl = `https://bm-api.beta.nyc/district_int_new?boundid=${boundId}&featureid=${featureId}`;
3737
const options = {
3838
headers: {
3939
'Accept': 'application/geo+json'

0 commit comments

Comments
 (0)