@golemio/bicycle-counters 1.2.15-dev.1288654790 → 1.3.1-dev.1315658864
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/dist/output-gateway/BicycleCountersRouter.d.ts +2 -0
- package/dist/output-gateway/BicycleCountersRouter.js +7 -5
- package/dist/output-gateway/BicycleCountersRouter.js.map +1 -1
- package/dist/output-gateway/ioc/Di.d.ts +3 -0
- package/dist/output-gateway/ioc/Di.js +8 -0
- package/dist/output-gateway/ioc/Di.js.map +1 -0
- package/docs/openapi.yaml +414 -396
- package/package.json +2 -2
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
/// <reference types="express" />
|
|
7
7
|
import { BaseRouter } from "@golemio/core/dist/output-gateway/routes/BaseRouter";
|
|
8
8
|
import { NextFunction, Request, Response, Router } from "@golemio/core/dist/shared/express";
|
|
9
|
+
import { CacheHeaderMiddleware } from "@golemio/core/dist/output-gateway/CacheHeaderMiddleware";
|
|
9
10
|
import { BicycleCountersDetectionsModel } from "./models/BicycleCountersDetectionsModel";
|
|
10
11
|
import { BicycleCountersLocationsModel } from "./models/BicycleCountersLocationsModel";
|
|
11
12
|
import { BicycleCountersTemperaturesModel } from "./models/BicycleCountersTemperaturesModel";
|
|
@@ -14,6 +15,7 @@ export declare class BicycleCountersRouter extends BaseRouter {
|
|
|
14
15
|
protected BicycleCountersLocationsModel: BicycleCountersLocationsModel;
|
|
15
16
|
protected BicycleCountersDetectionsModel: BicycleCountersDetectionsModel;
|
|
16
17
|
protected BicycleCountersTemperaturesModel: BicycleCountersTemperaturesModel;
|
|
18
|
+
protected cacheHeaderMiddleware: CacheHeaderMiddleware;
|
|
17
19
|
constructor();
|
|
18
20
|
GetAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
19
21
|
/**
|
|
@@ -16,11 +16,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.bicycleCountersRouter = exports.BicycleCountersRouter = void 0;
|
|
18
18
|
const Geo_1 = require("@golemio/core/dist/output-gateway/Geo");
|
|
19
|
-
const redis_1 = require("@golemio/core/dist/output-gateway/redis");
|
|
20
|
-
const BaseRouter_1 = require("@golemio/core/dist/output-gateway/routes/BaseRouter");
|
|
21
19
|
const Validation_1 = require("@golemio/core/dist/output-gateway/Validation");
|
|
20
|
+
const BaseRouter_1 = require("@golemio/core/dist/output-gateway/routes/BaseRouter");
|
|
22
21
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
23
22
|
const express_validator_1 = require("@golemio/core/dist/shared/express-validator");
|
|
23
|
+
const Di_1 = require("./ioc/Di");
|
|
24
|
+
const ioc_1 = require("@golemio/core/dist/output-gateway/ioc");
|
|
24
25
|
const models_1 = require("./models");
|
|
25
26
|
class BicycleCountersRouter extends BaseRouter_1.BaseRouter {
|
|
26
27
|
constructor() {
|
|
@@ -123,15 +124,16 @@ class BicycleCountersRouter extends BaseRouter_1.BaseRouter {
|
|
|
123
124
|
(0, express_validator_1.query)("to").optional().isISO8601().not().isArray(),
|
|
124
125
|
(0, express_validator_1.query)("id").optional().not().isEmpty({ ignore_whitespace: true }),
|
|
125
126
|
(0, express_validator_1.query)("aggregate").optional().isBoolean().not().isArray(),
|
|
126
|
-
], Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("BicycleCountersRouter"), (
|
|
127
|
+
], Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("BicycleCountersRouter"), this.cacheHeaderMiddleware.getMiddleware(60 * 60, 300), this.GetData(this.BicycleCountersTemperaturesModel));
|
|
127
128
|
this.router.get("/detections", [
|
|
128
129
|
(0, express_validator_1.query)("from").optional().isISO8601().not().isArray(),
|
|
129
130
|
(0, express_validator_1.query)("to").optional().isISO8601().not().isArray(),
|
|
130
131
|
(0, express_validator_1.query)("id").optional().not().isEmpty({ ignore_whitespace: true }),
|
|
131
132
|
(0, express_validator_1.query)("aggregate").optional().isBoolean().not().isArray(),
|
|
132
|
-
], Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("BicycleCountersRouter"), (
|
|
133
|
-
this.router.get("/", [(0, express_validator_1.query)("latlng").optional().isLatLong().not().isArray(), (0, express_validator_1.query)("range").optional().isNumeric().not().isArray()], Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("BicycleCountersRouter"), (
|
|
133
|
+
], Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("BicycleCountersRouter"), this.cacheHeaderMiddleware.getMiddleware(60 * 60, 300), this.GetData(this.BicycleCountersDetectionsModel));
|
|
134
|
+
this.router.get("/", [(0, express_validator_1.query)("latlng").optional().isLatLong().not().isArray(), (0, express_validator_1.query)("range").optional().isNumeric().not().isArray()], Validation_1.pagination, Validation_1.checkErrors, (0, Validation_1.paginationLimitMiddleware)("BicycleCountersRouter"), this.cacheHeaderMiddleware.getMiddleware(60 * 60, 300), this.GetAll);
|
|
134
135
|
};
|
|
136
|
+
this.cacheHeaderMiddleware = Di_1.BicycleCountersContainer.resolve(ioc_1.ContainerToken.CacheHeaderMiddleware);
|
|
135
137
|
this.BicycleCountersLocationsModel = models_1.models.BicycleCountersLocationsModel;
|
|
136
138
|
this.BicycleCountersDetectionsModel = models_1.models.BicycleCountersDetectionsModel;
|
|
137
139
|
this.BicycleCountersTemperaturesModel = models_1.models.BicycleCountersTemperaturesModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BicycleCountersRouter.js","sourceRoot":"","sources":["../../src/output-gateway/BicycleCountersRouter.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAEH,+DAI+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"BicycleCountersRouter.js","sourceRoot":"","sources":["../../src/output-gateway/BicycleCountersRouter.ts"],"names":[],"mappings":";AAAA;;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AAM,CAAC;AAEhE,sDAAqB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BicycleCountersContainer = void 0;
|
|
4
|
+
const Di_1 = require("@golemio/core/dist/output-gateway/ioc/Di");
|
|
5
|
+
//#region Initialization
|
|
6
|
+
const bicycleCountersContainer = Di_1.OutputGatewayContainer.createChildContainer();
|
|
7
|
+
exports.BicycleCountersContainer = bicycleCountersContainer;
|
|
8
|
+
//# sourceMappingURL=Di.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Di.js","sourceRoot":"","sources":["../../../src/output-gateway/ioc/Di.ts"],"names":[],"mappings":";;;AAAA,iEAAkF;AAGlF,wBAAwB;AACxB,MAAM,wBAAwB,GAAwB,2BAAsB,CAAC,oBAAoB,EAAE,CAAC;AAG/D,4DAAwB"}
|
package/docs/openapi.yaml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
|
|
3
3
|
info:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
title: Bicycle Counters
|
|
5
|
+
description: |
|
|
6
|
+
| Vendor | Vendor id prefix | Measurement time aggregation | Temperature availability |
|
|
7
|
+
| - | - | - | - |
|
|
8
|
+
| Camea | `camea-` | 5 minutes | available |
|
|
9
|
+
| EcoCounter | `ecoCounter-` | 15 minutes | not available |
|
|
10
|
+
⚠️ Measurements of vendor Camea are every day at 5:00am (UTC) validated and recalculated and can change then.
|
|
11
|
+
version: 1.0.0
|
|
12
|
+
contact:
|
|
13
|
+
name: Golemio Prague Data Platform
|
|
14
|
+
email: golemio@operatorict.cz
|
|
15
|
+
url: https://golemio.cz
|
|
16
16
|
|
|
17
17
|
servers:
|
|
18
18
|
- url: https://rabin.golemio.cz
|
|
@@ -21,394 +21,412 @@ servers:
|
|
|
21
21
|
description: Main (production) server
|
|
22
22
|
|
|
23
23
|
tags:
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
- name: 🧮 Bicycle Counters (v2)
|
|
25
|
+
description: <img src="https://img.shields.io/badge/opendata-available-green" alt="golemioapi-opendata-badge" /> 💡 Locations and Measurements of Bicycle Counters in Prague
|
|
26
26
|
|
|
27
27
|
paths:
|
|
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
|
-
|
|
28
|
+
/v2/bicyclecounters:
|
|
29
|
+
get:
|
|
30
|
+
tags:
|
|
31
|
+
- 🧮 Bicycle Counters (v2)
|
|
32
|
+
summary: GET All Bicycle Counters
|
|
33
|
+
parameters:
|
|
34
|
+
- name: latlng
|
|
35
|
+
in: query
|
|
36
|
+
description: Sorting by location (Latitude and Longitude separated by comma,
|
|
37
|
+
latitude first).
|
|
38
|
+
schema:
|
|
39
|
+
type: string
|
|
40
|
+
example: 50.124935,14.457204
|
|
41
|
+
- name: range
|
|
42
|
+
in: query
|
|
43
|
+
description: Filter by distance from latlng in meters (range query). Depends
|
|
44
|
+
on the latlng parameter.
|
|
45
|
+
schema:
|
|
46
|
+
type: number
|
|
47
|
+
example: 5000
|
|
48
|
+
- name: limit
|
|
49
|
+
in: query
|
|
50
|
+
description: Limits number of retrieved items. The maximum is 10000 (default
|
|
51
|
+
value).
|
|
52
|
+
schema:
|
|
53
|
+
type: number
|
|
54
|
+
example: 10
|
|
55
|
+
- name: offset
|
|
56
|
+
in: query
|
|
57
|
+
description: Number of the first items that are skipped.
|
|
58
|
+
schema:
|
|
59
|
+
type: number
|
|
60
|
+
example: 0
|
|
61
|
+
- name: x-access-token
|
|
62
|
+
in: header
|
|
63
|
+
description: e.g. YOUR_ACCESS_TOKEN
|
|
64
|
+
schema:
|
|
65
|
+
type: string
|
|
66
|
+
example: YOUR_ACCESS_TOKEN
|
|
67
|
+
responses:
|
|
68
|
+
200:
|
|
69
|
+
description: OK
|
|
70
|
+
headers:
|
|
71
|
+
Cache-Control:
|
|
72
|
+
description: Cache control directive for caching proxies
|
|
73
|
+
schema:
|
|
74
|
+
type: string
|
|
75
|
+
example: public, s-maxage=3600, stale-while-revalidate=300
|
|
76
|
+
content:
|
|
77
|
+
application/json; charset=utf-8:
|
|
78
|
+
schema:
|
|
79
|
+
required:
|
|
80
|
+
- type
|
|
81
|
+
type: object
|
|
82
|
+
properties:
|
|
83
|
+
type:
|
|
84
|
+
type: string
|
|
85
|
+
features:
|
|
86
|
+
type: array
|
|
87
|
+
items:
|
|
88
|
+
$ref: "#/components/schemas/FeaturePoint"
|
|
89
|
+
example:
|
|
90
|
+
type: FeatureCollection
|
|
91
|
+
features:
|
|
92
|
+
- geometry:
|
|
93
|
+
type: Point
|
|
94
|
+
coordinates:
|
|
95
|
+
- 14.4633
|
|
96
|
+
- 50.07827
|
|
97
|
+
properties:
|
|
98
|
+
id: camea-BC_AT-STLA
|
|
99
|
+
name: Altetická
|
|
100
|
+
route: A140
|
|
101
|
+
updated_at: "2019-05-18T07:38:37.000Z"
|
|
102
|
+
directions:
|
|
103
|
+
- id: BC_AT_ST
|
|
104
|
+
name: Strahov
|
|
105
|
+
type: Feature
|
|
106
|
+
404:
|
|
107
|
+
description: Not found
|
|
108
|
+
content:
|
|
109
|
+
application/json; charset=utf-8:
|
|
110
|
+
schema:
|
|
111
|
+
$ref: "#/components/schemas/Error"
|
|
112
|
+
example:
|
|
113
|
+
error_message: Not Found
|
|
114
|
+
error_status: 404
|
|
115
|
+
403:
|
|
116
|
+
description: Forbidden
|
|
117
|
+
content:
|
|
118
|
+
application/json; charset=utf-8:
|
|
119
|
+
schema:
|
|
120
|
+
$ref: "#/components/schemas/Error"
|
|
121
|
+
example:
|
|
122
|
+
error_message: Forbidden
|
|
123
|
+
error_status: 403
|
|
124
|
+
/v2/bicyclecounters/detections:
|
|
125
|
+
get:
|
|
126
|
+
tags:
|
|
127
|
+
- 🧮 Bicycle Counters (v2)
|
|
128
|
+
summary: GET Bicycle Counters Detections
|
|
129
|
+
parameters:
|
|
130
|
+
- name: limit
|
|
131
|
+
in: query
|
|
132
|
+
description: Limits number of retrieved items. The maximum is 10000 (default
|
|
133
|
+
value).
|
|
134
|
+
schema:
|
|
135
|
+
type: number
|
|
136
|
+
example: 10
|
|
137
|
+
- name: offset
|
|
138
|
+
in: query
|
|
139
|
+
description: Number of the first items that are skipped.
|
|
140
|
+
schema:
|
|
141
|
+
type: number
|
|
142
|
+
example: 0
|
|
143
|
+
- name: from
|
|
144
|
+
in: query
|
|
145
|
+
description: Date in ISO8601, limits data measured from this datetime
|
|
146
|
+
schema:
|
|
147
|
+
type: string
|
|
148
|
+
example: "2019-05-16T04:27:58.000Z"
|
|
149
|
+
- name: to
|
|
150
|
+
in: query
|
|
151
|
+
description: Date in ISO8601, limits data measured up until this datetime
|
|
152
|
+
schema:
|
|
153
|
+
type: string
|
|
154
|
+
example: "2019-05-18T04:27:58.000Z"
|
|
155
|
+
- name: aggregate
|
|
156
|
+
in: query
|
|
157
|
+
description: sum aggregated by directions_id is returned
|
|
158
|
+
schema:
|
|
159
|
+
type: boolean
|
|
160
|
+
example: true
|
|
161
|
+
- name: id
|
|
162
|
+
in: query
|
|
163
|
+
description: direction ids
|
|
164
|
+
schema:
|
|
165
|
+
type: string
|
|
166
|
+
example: camea-BC_ZA-BO
|
|
167
|
+
- name: x-access-token
|
|
168
|
+
in: header
|
|
169
|
+
description: e.g. YOUR_ACCESS_TOKEN
|
|
170
|
+
schema:
|
|
171
|
+
type: string
|
|
172
|
+
example: YOUR_ACCESS_TOKEN
|
|
173
|
+
responses:
|
|
174
|
+
200:
|
|
175
|
+
description: OK
|
|
176
|
+
headers:
|
|
177
|
+
Cache-Control:
|
|
178
|
+
description: Cache control directive for caching proxies
|
|
179
|
+
schema:
|
|
180
|
+
type: string
|
|
181
|
+
example: public, s-maxage=3600, stale-while-revalidate=300
|
|
182
|
+
content:
|
|
183
|
+
application/json; charset=utf-8:
|
|
184
|
+
schema:
|
|
185
|
+
type: array
|
|
186
|
+
items:
|
|
187
|
+
$ref: "#/components/schemas/BicycleCounterDetections"
|
|
188
|
+
example:
|
|
189
|
+
- id: camea-BC_ZA-BO
|
|
190
|
+
value: 3
|
|
191
|
+
value_pedestrians: 7
|
|
192
|
+
locations_id: camea-BC_PN-VYBR
|
|
193
|
+
measured_from: "2019-05-18T07:38:37.000Z"
|
|
194
|
+
measured_to: "2019-05-18T07:38:37.000Z"
|
|
195
|
+
measurement_count: 1
|
|
196
|
+
404:
|
|
197
|
+
description: Not found
|
|
198
|
+
content:
|
|
199
|
+
application/json; charset=utf-8:
|
|
200
|
+
schema:
|
|
201
|
+
$ref: "#/components/schemas/Error"
|
|
202
|
+
example:
|
|
203
|
+
error_message: Not Found
|
|
204
|
+
error_status: 404
|
|
205
|
+
403:
|
|
206
|
+
description: Forbidden
|
|
207
|
+
content:
|
|
208
|
+
application/json; charset=utf-8:
|
|
209
|
+
schema:
|
|
210
|
+
$ref: "#/components/schemas/Error"
|
|
211
|
+
example:
|
|
212
|
+
error_message: Forbidden
|
|
213
|
+
error_status: 403
|
|
214
|
+
/v2/bicyclecounters/temperatures:
|
|
215
|
+
get:
|
|
216
|
+
tags:
|
|
217
|
+
- 🧮 Bicycle Counters (v2)
|
|
218
|
+
summary: GET Bicycle Counters Temperatures
|
|
219
|
+
parameters:
|
|
220
|
+
- name: limit
|
|
221
|
+
in: query
|
|
222
|
+
description: Limits number of retrieved items. The maximum is 10000 (default
|
|
223
|
+
value).
|
|
224
|
+
schema:
|
|
225
|
+
type: number
|
|
226
|
+
example: 10
|
|
227
|
+
- name: offset
|
|
228
|
+
in: query
|
|
229
|
+
description: Number of the first items that are skipped.
|
|
230
|
+
schema:
|
|
231
|
+
type: number
|
|
232
|
+
example: 0
|
|
233
|
+
- name: from
|
|
234
|
+
in: query
|
|
235
|
+
description: Date in ISO8601, limits data measured from this datetime
|
|
236
|
+
schema:
|
|
237
|
+
type: string
|
|
238
|
+
example: "2019-05-16T04:27:58.000Z"
|
|
239
|
+
- name: to
|
|
240
|
+
in: query
|
|
241
|
+
description: Date in ISO8601, limits data measured up until this datetime
|
|
242
|
+
schema:
|
|
243
|
+
type: string
|
|
244
|
+
example: "2019-05-18T04:27:58.000Z"
|
|
245
|
+
- name: aggregate
|
|
246
|
+
in: query
|
|
247
|
+
description: average aggregated by locations_id is returned
|
|
248
|
+
schema:
|
|
249
|
+
type: boolean
|
|
250
|
+
example: true
|
|
251
|
+
- name: id
|
|
252
|
+
in: query
|
|
253
|
+
description: location ids
|
|
254
|
+
schema:
|
|
255
|
+
type: array
|
|
256
|
+
items:
|
|
257
|
+
type: string
|
|
258
|
+
example: camea-BC_ZA-KLBO
|
|
259
|
+
- name: x-access-token
|
|
260
|
+
in: header
|
|
261
|
+
description: e.g. YOUR_ACCESS_TOKEN
|
|
262
|
+
schema:
|
|
263
|
+
type: string
|
|
264
|
+
example: YOUR_ACCESS_TOKEN
|
|
265
|
+
responses:
|
|
266
|
+
200:
|
|
267
|
+
description: OK
|
|
268
|
+
headers:
|
|
269
|
+
Cache-Control:
|
|
270
|
+
description: Cache control directive for caching proxies
|
|
271
|
+
schema:
|
|
272
|
+
type: string
|
|
273
|
+
example: public, s-maxage=3600, stale-while-revalidate=300
|
|
274
|
+
content:
|
|
275
|
+
application/json; charset=utf-8:
|
|
276
|
+
schema:
|
|
277
|
+
type: array
|
|
278
|
+
items:
|
|
279
|
+
$ref: "#/components/schemas/BicycleCounterTemperatures"
|
|
280
|
+
example:
|
|
281
|
+
- id: camea-BC_AT-STLA
|
|
282
|
+
value: 3
|
|
283
|
+
measured_from: "2019-05-18T07:38:37.000Z"
|
|
284
|
+
measured_to: "2019-05-18T07:38:37.000Z"
|
|
285
|
+
measurement_count: 1
|
|
286
|
+
404:
|
|
287
|
+
description: Not found
|
|
288
|
+
content:
|
|
289
|
+
application/json; charset=utf-8:
|
|
290
|
+
schema:
|
|
291
|
+
$ref: "#/components/schemas/Error"
|
|
292
|
+
example:
|
|
293
|
+
error_message: Not Found
|
|
294
|
+
error_status: 404
|
|
295
|
+
403:
|
|
296
|
+
description: Forbidden
|
|
297
|
+
content:
|
|
298
|
+
application/json; charset=utf-8:
|
|
299
|
+
schema:
|
|
300
|
+
$ref: "#/components/schemas/Error"
|
|
301
|
+
example:
|
|
302
|
+
error_message: Forbidden
|
|
303
|
+
error_status: 403
|
|
304
|
+
components:
|
|
305
|
+
schemas:
|
|
306
|
+
Point:
|
|
307
|
+
type: array
|
|
308
|
+
items:
|
|
309
|
+
type: number
|
|
310
|
+
minItems: 2
|
|
311
|
+
maxItems: 2
|
|
312
|
+
example:
|
|
313
|
+
- 14.4633
|
|
314
|
+
- 50.07827
|
|
315
|
+
Error:
|
|
316
|
+
title: Error
|
|
317
|
+
required:
|
|
318
|
+
- error_message
|
|
319
|
+
- error_status
|
|
320
|
+
type: object
|
|
321
|
+
properties:
|
|
322
|
+
error_message:
|
|
323
|
+
type: string
|
|
324
|
+
example: Forbidden
|
|
325
|
+
error_status:
|
|
326
|
+
type: number
|
|
327
|
+
example: 403
|
|
328
|
+
FeaturePoint:
|
|
329
|
+
title: Feature Point
|
|
330
|
+
required:
|
|
331
|
+
- geometry
|
|
332
|
+
- properties
|
|
74
333
|
- type
|
|
75
|
-
|
|
334
|
+
type: object
|
|
335
|
+
properties:
|
|
336
|
+
geometry:
|
|
337
|
+
required:
|
|
338
|
+
- coordinates
|
|
339
|
+
- type
|
|
340
|
+
type: object
|
|
341
|
+
properties:
|
|
342
|
+
type:
|
|
343
|
+
type: string
|
|
344
|
+
coordinates:
|
|
345
|
+
$ref: "#/components/schemas/Point"
|
|
76
346
|
properties:
|
|
77
|
-
|
|
347
|
+
$ref: "#/components/schemas/BicycleCounter"
|
|
348
|
+
type:
|
|
349
|
+
type: string
|
|
350
|
+
BicycleCounter:
|
|
351
|
+
title: Bicycle Counter
|
|
352
|
+
required:
|
|
353
|
+
- id
|
|
354
|
+
- name
|
|
355
|
+
type: object
|
|
356
|
+
properties:
|
|
357
|
+
id:
|
|
358
|
+
type: string
|
|
359
|
+
example: camea-BC_AT-STLA
|
|
360
|
+
name:
|
|
78
361
|
type: string
|
|
79
|
-
|
|
362
|
+
example: Altetická
|
|
363
|
+
route:
|
|
364
|
+
type: string
|
|
365
|
+
example: A140
|
|
366
|
+
updated_at:
|
|
367
|
+
type: string
|
|
368
|
+
example: "2019-05-18T07:38:37.000Z"
|
|
369
|
+
directions:
|
|
80
370
|
type: array
|
|
81
371
|
items:
|
|
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
|
-
- name: to
|
|
144
|
-
in: query
|
|
145
|
-
description: Date in ISO8601, limits data measured up until this datetime
|
|
146
|
-
schema:
|
|
147
|
-
type: string
|
|
148
|
-
example: "2019-05-18T04:27:58.000Z"
|
|
149
|
-
- name: aggregate
|
|
150
|
-
in: query
|
|
151
|
-
description: sum aggregated by directions_id is returned
|
|
152
|
-
schema:
|
|
153
|
-
type: boolean
|
|
154
|
-
example: true
|
|
155
|
-
- name: id
|
|
156
|
-
in: query
|
|
157
|
-
description: direction ids
|
|
158
|
-
schema:
|
|
159
|
-
type: string
|
|
160
|
-
example: camea-BC_ZA-BO
|
|
161
|
-
- name: x-access-token
|
|
162
|
-
in: header
|
|
163
|
-
description: e.g. YOUR_ACCESS_TOKEN
|
|
164
|
-
schema:
|
|
165
|
-
type: string
|
|
166
|
-
example: YOUR_ACCESS_TOKEN
|
|
167
|
-
responses:
|
|
168
|
-
200:
|
|
169
|
-
description: OK
|
|
170
|
-
content:
|
|
171
|
-
application/json; charset=utf-8:
|
|
172
|
-
schema:
|
|
173
|
-
type: array
|
|
174
|
-
items:
|
|
175
|
-
$ref: '#/components/schemas/BicycleCounterDetections'
|
|
176
|
-
example:
|
|
177
|
-
- id: camea-BC_ZA-BO
|
|
178
|
-
value: 3
|
|
179
|
-
value_pedestrians: 7
|
|
180
|
-
locations_id: camea-BC_PN-VYBR
|
|
181
|
-
measured_from: "2019-05-18T07:38:37.000Z"
|
|
182
|
-
measured_to: "2019-05-18T07:38:37.000Z"
|
|
183
|
-
measurement_count: 1
|
|
184
|
-
404:
|
|
185
|
-
description: Not found
|
|
186
|
-
content:
|
|
187
|
-
application/json; charset=utf-8:
|
|
188
|
-
schema:
|
|
189
|
-
$ref: '#/components/schemas/Error'
|
|
190
|
-
example:
|
|
191
|
-
error_message: Not Found
|
|
192
|
-
error_status: 404
|
|
193
|
-
403:
|
|
194
|
-
description: Forbidden
|
|
195
|
-
content:
|
|
196
|
-
application/json; charset=utf-8:
|
|
197
|
-
schema:
|
|
198
|
-
$ref: '#/components/schemas/Error'
|
|
199
|
-
example:
|
|
200
|
-
error_message: Forbidden
|
|
201
|
-
error_status: 403
|
|
202
|
-
/v2/bicyclecounters/temperatures:
|
|
203
|
-
get:
|
|
204
|
-
tags:
|
|
205
|
-
- 🧮 Bicycle Counters (v2)
|
|
206
|
-
summary: GET Bicycle Counters Temperatures
|
|
207
|
-
parameters:
|
|
208
|
-
- name: limit
|
|
209
|
-
in: query
|
|
210
|
-
description: Limits number of retrieved items. The maximum is 10000 (default
|
|
211
|
-
value).
|
|
212
|
-
schema:
|
|
213
|
-
type: number
|
|
214
|
-
example: 10
|
|
215
|
-
- name: offset
|
|
216
|
-
in: query
|
|
217
|
-
description: Number of the first items that are skipped.
|
|
218
|
-
schema:
|
|
219
|
-
type: number
|
|
220
|
-
example: 0
|
|
221
|
-
- name: from
|
|
222
|
-
in: query
|
|
223
|
-
description: Date in ISO8601, limits data measured from this datetime
|
|
224
|
-
schema:
|
|
225
|
-
type: string
|
|
226
|
-
example: "2019-05-16T04:27:58.000Z"
|
|
227
|
-
- name: to
|
|
228
|
-
in: query
|
|
229
|
-
description: Date in ISO8601, limits data measured up until this datetime
|
|
230
|
-
schema:
|
|
231
|
-
type: string
|
|
232
|
-
example: "2019-05-18T04:27:58.000Z"
|
|
233
|
-
- name: aggregate
|
|
234
|
-
in: query
|
|
235
|
-
description: average aggregated by locations_id is returned
|
|
236
|
-
schema:
|
|
237
|
-
type: boolean
|
|
238
|
-
example: true
|
|
239
|
-
- name: id
|
|
240
|
-
in: query
|
|
241
|
-
description: location ids
|
|
242
|
-
schema:
|
|
243
|
-
type: array
|
|
244
|
-
items:
|
|
245
|
-
type: string
|
|
246
|
-
example: camea-BC_ZA-KLBO
|
|
247
|
-
- name: x-access-token
|
|
248
|
-
in: header
|
|
249
|
-
description: e.g. YOUR_ACCESS_TOKEN
|
|
250
|
-
schema:
|
|
251
|
-
type: string
|
|
252
|
-
example: YOUR_ACCESS_TOKEN
|
|
253
|
-
responses:
|
|
254
|
-
200:
|
|
255
|
-
description: OK
|
|
256
|
-
content:
|
|
257
|
-
application/json; charset=utf-8:
|
|
258
|
-
schema:
|
|
259
|
-
type: array
|
|
260
|
-
items:
|
|
261
|
-
$ref: '#/components/schemas/BicycleCounterTemperatures'
|
|
262
|
-
example:
|
|
263
|
-
- id: camea-BC_AT-STLA
|
|
264
|
-
value: 3
|
|
265
|
-
measured_from: "2019-05-18T07:38:37.000Z"
|
|
266
|
-
measured_to: "2019-05-18T07:38:37.000Z"
|
|
267
|
-
measurement_count: 1
|
|
268
|
-
404:
|
|
269
|
-
description: Not found
|
|
270
|
-
content:
|
|
271
|
-
application/json; charset=utf-8:
|
|
272
|
-
schema:
|
|
273
|
-
$ref: '#/components/schemas/Error'
|
|
274
|
-
example:
|
|
275
|
-
error_message: Not Found
|
|
276
|
-
error_status: 404
|
|
277
|
-
403:
|
|
278
|
-
description: Forbidden
|
|
279
|
-
content:
|
|
280
|
-
application/json; charset=utf-8:
|
|
281
|
-
schema:
|
|
282
|
-
$ref: '#/components/schemas/Error'
|
|
283
|
-
example:
|
|
284
|
-
error_message: Forbidden
|
|
285
|
-
error_status: 403
|
|
286
|
-
components:
|
|
287
|
-
schemas:
|
|
288
|
-
Point:
|
|
289
|
-
type: array
|
|
290
|
-
items:
|
|
291
|
-
type: number
|
|
292
|
-
minItems: 2
|
|
293
|
-
maxItems: 2
|
|
294
|
-
example:
|
|
295
|
-
- 14.4633
|
|
296
|
-
- 50.07827
|
|
297
|
-
Error:
|
|
298
|
-
title: Error
|
|
299
|
-
required:
|
|
300
|
-
- error_message
|
|
301
|
-
- error_status
|
|
302
|
-
type: object
|
|
303
|
-
properties:
|
|
304
|
-
error_message:
|
|
305
|
-
type: string
|
|
306
|
-
example: Forbidden
|
|
307
|
-
error_status:
|
|
308
|
-
type: number
|
|
309
|
-
example: 403
|
|
310
|
-
FeaturePoint:
|
|
311
|
-
title: Feature Point
|
|
312
|
-
required:
|
|
313
|
-
- geometry
|
|
314
|
-
- properties
|
|
315
|
-
- type
|
|
316
|
-
type: object
|
|
317
|
-
properties:
|
|
318
|
-
geometry:
|
|
319
|
-
required:
|
|
320
|
-
- coordinates
|
|
321
|
-
- type
|
|
322
|
-
type: object
|
|
323
|
-
properties:
|
|
324
|
-
type:
|
|
325
|
-
type: string
|
|
326
|
-
coordinates:
|
|
327
|
-
$ref: '#/components/schemas/Point'
|
|
328
|
-
properties:
|
|
329
|
-
$ref: '#/components/schemas/BicycleCounter'
|
|
330
|
-
type:
|
|
331
|
-
type: string
|
|
332
|
-
BicycleCounter:
|
|
333
|
-
title: Bicycle Counter
|
|
334
|
-
required:
|
|
335
|
-
- id
|
|
336
|
-
- name
|
|
337
|
-
type: object
|
|
338
|
-
properties:
|
|
339
|
-
id:
|
|
340
|
-
type: string
|
|
341
|
-
example: camea-BC_AT-STLA
|
|
342
|
-
name:
|
|
343
|
-
type: string
|
|
344
|
-
example: Altetická
|
|
345
|
-
route:
|
|
346
|
-
type: string
|
|
347
|
-
example: A140
|
|
348
|
-
updated_at:
|
|
349
|
-
type: string
|
|
350
|
-
example: "2019-05-18T07:38:37.000Z"
|
|
351
|
-
directions:
|
|
352
|
-
type: array
|
|
353
|
-
items:
|
|
354
|
-
$ref: '#/components/schemas/BicycleCounterDirection'
|
|
355
|
-
BicycleCounterDetections:
|
|
356
|
-
title: Bicycle Counter Detections
|
|
357
|
-
type: object
|
|
358
|
-
properties:
|
|
359
|
-
id:
|
|
360
|
-
type: string
|
|
361
|
-
description: direction_id
|
|
362
|
-
example: camea-BC_ZA-BO
|
|
363
|
-
value:
|
|
364
|
-
type: number
|
|
365
|
-
example: 3
|
|
366
|
-
value_pedestrians:
|
|
367
|
-
type: number
|
|
368
|
-
example: 7
|
|
369
|
-
locations_id:
|
|
370
|
-
type: string
|
|
371
|
-
example: camea-BC_PN-VYBR
|
|
372
|
-
measured_from:
|
|
373
|
-
type: string
|
|
374
|
-
example: 2019-05-18T07:38:37.000Z
|
|
375
|
-
measured_to:
|
|
376
|
-
type: string
|
|
377
|
-
example: 2019-05-18T07:38:37.000Z
|
|
378
|
-
measurement_count:
|
|
379
|
-
type: number
|
|
380
|
-
example: 1
|
|
381
|
-
BicycleCounterDirection:
|
|
382
|
-
title: Bicycle Counter Direction
|
|
383
|
-
required:
|
|
384
|
-
- id
|
|
385
|
-
type: object
|
|
386
|
-
properties:
|
|
387
|
-
id:
|
|
388
|
-
type: string
|
|
389
|
-
description: direction ID
|
|
390
|
-
example: BC_AT_ST
|
|
391
|
-
name:
|
|
392
|
-
type: string
|
|
393
|
-
description: direction name
|
|
394
|
-
example: Strahov
|
|
395
|
-
BicycleCounterTemperatures:
|
|
396
|
-
title: Bicycle Counter Temperatures
|
|
397
|
-
type: object
|
|
398
|
-
properties:
|
|
399
|
-
id:
|
|
400
|
-
type: string
|
|
401
|
-
description: location_id
|
|
402
|
-
example: camea-BC_AT-STLA
|
|
403
|
-
value:
|
|
404
|
-
type: number
|
|
405
|
-
example: 3
|
|
406
|
-
measured_from:
|
|
407
|
-
type: string
|
|
408
|
-
example: "2019-05-18T07:38:37.000Z"
|
|
409
|
-
measured_to:
|
|
410
|
-
type: string
|
|
411
|
-
example: "2019-05-18T07:38:37.000Z"
|
|
412
|
-
measurement_count:
|
|
413
|
-
type: number
|
|
414
|
-
example: 1
|
|
372
|
+
$ref: "#/components/schemas/BicycleCounterDirection"
|
|
373
|
+
BicycleCounterDetections:
|
|
374
|
+
title: Bicycle Counter Detections
|
|
375
|
+
type: object
|
|
376
|
+
properties:
|
|
377
|
+
id:
|
|
378
|
+
type: string
|
|
379
|
+
description: direction_id
|
|
380
|
+
example: camea-BC_ZA-BO
|
|
381
|
+
value:
|
|
382
|
+
type: number
|
|
383
|
+
example: 3
|
|
384
|
+
value_pedestrians:
|
|
385
|
+
type: number
|
|
386
|
+
example: 7
|
|
387
|
+
locations_id:
|
|
388
|
+
type: string
|
|
389
|
+
example: camea-BC_PN-VYBR
|
|
390
|
+
measured_from:
|
|
391
|
+
type: string
|
|
392
|
+
example: 2019-05-18T07:38:37.000Z
|
|
393
|
+
measured_to:
|
|
394
|
+
type: string
|
|
395
|
+
example: 2019-05-18T07:38:37.000Z
|
|
396
|
+
measurement_count:
|
|
397
|
+
type: number
|
|
398
|
+
example: 1
|
|
399
|
+
BicycleCounterDirection:
|
|
400
|
+
title: Bicycle Counter Direction
|
|
401
|
+
required:
|
|
402
|
+
- id
|
|
403
|
+
type: object
|
|
404
|
+
properties:
|
|
405
|
+
id:
|
|
406
|
+
type: string
|
|
407
|
+
description: direction ID
|
|
408
|
+
example: BC_AT_ST
|
|
409
|
+
name:
|
|
410
|
+
type: string
|
|
411
|
+
description: direction name
|
|
412
|
+
example: Strahov
|
|
413
|
+
BicycleCounterTemperatures:
|
|
414
|
+
title: Bicycle Counter Temperatures
|
|
415
|
+
type: object
|
|
416
|
+
properties:
|
|
417
|
+
id:
|
|
418
|
+
type: string
|
|
419
|
+
description: location_id
|
|
420
|
+
example: camea-BC_AT-STLA
|
|
421
|
+
value:
|
|
422
|
+
type: number
|
|
423
|
+
example: 3
|
|
424
|
+
measured_from:
|
|
425
|
+
type: string
|
|
426
|
+
example: "2019-05-18T07:38:37.000Z"
|
|
427
|
+
measured_to:
|
|
428
|
+
type: string
|
|
429
|
+
example: "2019-05-18T07:38:37.000Z"
|
|
430
|
+
measurement_count:
|
|
431
|
+
type: number
|
|
432
|
+
example: 1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/bicycle-counters",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1-dev.1315658864",
|
|
4
4
|
"description": "Golemio Bicycle Counters Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@commitlint/cli": "^11.0.0",
|
|
33
33
|
"@commitlint/config-conventional": "^11.0.0",
|
|
34
34
|
"@golemio/cli": "1.5.0",
|
|
35
|
-
"@golemio/core": "1.10.
|
|
35
|
+
"@golemio/core": "1.10.3",
|
|
36
36
|
"@golemio/db-common": "1.1.4",
|
|
37
37
|
"@golemio/eslint-config": "1.1.2",
|
|
38
38
|
"@types/chai": "4.2.3",
|