@nyc-transit-kit/nyc-open-data 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/descriptors.ts +41 -11
- package/src/internal/descriptor-records.ts +2 -40
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyc-transit-kit/nyc-open-data",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"test": "bun test ./test"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@nyc-transit-kit/contracts": "0.1.
|
|
26
|
-
"@nyc-transit-kit/soda3": "0.1.
|
|
25
|
+
"@nyc-transit-kit/contracts": "0.1.1",
|
|
26
|
+
"@nyc-transit-kit/soda3": "0.1.1",
|
|
27
27
|
"effect": "4.0.0-beta.83"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
package/src/descriptors.ts
CHANGED
|
@@ -11,19 +11,49 @@ const descriptorRegistry = makeDescriptorRegistry({
|
|
|
11
11
|
id: (dataset) => String(dataset.id)
|
|
12
12
|
})
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
/** @deprecated DOT-owned dataset. Use `@nyc-transit-kit/nyc-dot/datasets` instead. */
|
|
15
|
+
export const busLanesLocalStreetsDescriptor = decodeDescriptor({
|
|
16
|
+
id: "ycrg-ses3",
|
|
17
|
+
name: "Bus Lanes - Local Streets",
|
|
18
|
+
domain: "data.cityofnewyork.us",
|
|
19
|
+
agency: "DOT",
|
|
20
|
+
backing: "socrata",
|
|
21
|
+
description: "NYC DOT bus lane centerline dataset hosted on NYC Open Data.",
|
|
22
|
+
sourceUrl: "https://data.cityofnewyork.us/d/ycrg-ses3",
|
|
23
|
+
tags: ["transportation", "transit"],
|
|
24
|
+
adapterStatus: "none",
|
|
25
|
+
lastVerified: "2026-06-16"
|
|
26
|
+
})
|
|
23
27
|
|
|
24
|
-
|
|
28
|
+
/** @deprecated DOT-owned dataset. Use `@nyc-transit-kit/nyc-dot/datasets` instead. */
|
|
29
|
+
export const dotTrafficSpeedsDescriptor = decodeDescriptor({
|
|
30
|
+
id: "i4gi-tjb9",
|
|
31
|
+
name: "DOT Traffic Speeds",
|
|
32
|
+
domain: "data.cityofnewyork.us",
|
|
33
|
+
agency: "DOT",
|
|
34
|
+
backing: "socrata",
|
|
35
|
+
description: "NYC DOT traffic speeds dataset hosted on NYC Open Data.",
|
|
36
|
+
sourceUrl: "https://data.cityofnewyork.us/d/i4gi-tjb9",
|
|
37
|
+
tags: ["transportation", "traffic"],
|
|
38
|
+
temporalFields: ["data_as_of"],
|
|
39
|
+
adapterStatus: "none",
|
|
40
|
+
lastVerified: "2026-06-16"
|
|
41
|
+
})
|
|
25
42
|
|
|
26
|
-
|
|
43
|
+
/** @deprecated DOT-owned dataset. Use `@nyc-transit-kit/nyc-dot/datasets` instead. */
|
|
44
|
+
export const trafficVolumeCountsDescriptor = decodeDescriptor({
|
|
45
|
+
id: "btm5-ppia",
|
|
46
|
+
name: "Traffic Volume Counts Historical",
|
|
47
|
+
domain: "data.cityofnewyork.us",
|
|
48
|
+
agency: "DOT",
|
|
49
|
+
backing: "socrata",
|
|
50
|
+
description: "NYC DOT historical traffic volume counts dataset hosted on NYC Open Data.",
|
|
51
|
+
sourceUrl: "https://data.cityofnewyork.us/d/btm5-ppia",
|
|
52
|
+
tags: ["transportation", "traffic"],
|
|
53
|
+
temporalFields: ["count_date"],
|
|
54
|
+
adapterStatus: "none",
|
|
55
|
+
lastVerified: "2026-06-16"
|
|
56
|
+
})
|
|
27
57
|
|
|
28
58
|
export const knownNycOpenDataDatasets: ReadonlyArray<NycOpenDataDatasetDescriptor> =
|
|
29
59
|
descriptorRegistry.all
|
|
@@ -1,42 +1,4 @@
|
|
|
1
1
|
import type { NycOpenDataDatasetDescriptorInput } from "@nyc-transit-kit/contracts/nyc-open-data"
|
|
2
2
|
|
|
3
|
-
export const nycOpenDataDescriptorRecords =
|
|
4
|
-
|
|
5
|
-
id: "ycrg-ses3",
|
|
6
|
-
name: "Bus Lanes - Local Streets",
|
|
7
|
-
domain: "data.cityofnewyork.us",
|
|
8
|
-
agency: "DOT",
|
|
9
|
-
backing: "socrata",
|
|
10
|
-
description: "NYC DOT bus lane centerline dataset hosted on NYC Open Data.",
|
|
11
|
-
sourceUrl: "https://data.cityofnewyork.us/d/ycrg-ses3",
|
|
12
|
-
tags: ["transportation", "transit"],
|
|
13
|
-
adapterStatus: "none",
|
|
14
|
-
lastVerified: "2026-06-16"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
id: "i4gi-tjb9",
|
|
18
|
-
name: "DOT Traffic Speeds",
|
|
19
|
-
domain: "data.cityofnewyork.us",
|
|
20
|
-
agency: "DOT",
|
|
21
|
-
backing: "socrata",
|
|
22
|
-
description: "NYC DOT traffic speeds dataset hosted on NYC Open Data.",
|
|
23
|
-
sourceUrl: "https://data.cityofnewyork.us/d/i4gi-tjb9",
|
|
24
|
-
tags: ["transportation", "traffic"],
|
|
25
|
-
temporalFields: ["data_as_of"],
|
|
26
|
-
adapterStatus: "none",
|
|
27
|
-
lastVerified: "2026-06-16"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: "btm5-ppia",
|
|
31
|
-
name: "Traffic Volume Counts Historical",
|
|
32
|
-
domain: "data.cityofnewyork.us",
|
|
33
|
-
agency: "DOT",
|
|
34
|
-
backing: "socrata",
|
|
35
|
-
description: "NYC DOT historical traffic volume counts dataset hosted on NYC Open Data.",
|
|
36
|
-
sourceUrl: "https://data.cityofnewyork.us/d/btm5-ppia",
|
|
37
|
-
tags: ["transportation", "traffic"],
|
|
38
|
-
temporalFields: ["count_date"],
|
|
39
|
-
adapterStatus: "none",
|
|
40
|
-
lastVerified: "2026-06-16"
|
|
41
|
-
}
|
|
42
|
-
] satisfies ReadonlyArray<NycOpenDataDatasetDescriptorInput>
|
|
3
|
+
export const nycOpenDataDescriptorRecords =
|
|
4
|
+
[] satisfies ReadonlyArray<NycOpenDataDatasetDescriptorInput>
|