Skip to content

Commit b5c38a5

Browse files
committed
Add KY AVL Sample data
1 parent d339a34 commit b5c38a5

4 files changed

Lines changed: 211 additions & 1 deletion

File tree

2.37 MB
Binary file not shown.
Lines changed: 193 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License;
4+
* you may not use this file except in compliance with the Elastic License.
5+
*/
6+
7+
export const avlFieldMappings = {
8+
"avlAddress": {
9+
"type": "keyword"
10+
},
11+
"avlAirTemp": {
12+
"type": "double"
13+
},
14+
"avlBlast": {
15+
"type": "byte"
16+
},
17+
"avlDirection": {
18+
"type": "short"
19+
},
20+
"avlDryRate": {
21+
"type": "double"
22+
},
23+
"avlLiquidRate": {
24+
"type": "double"
25+
},
26+
"avlPlowStatus": {
27+
"type": "byte"
28+
},
29+
"avlPoint": {
30+
"type": "geo_point"
31+
},
32+
"avlRoadTemp": {
33+
"type": "double"
34+
},
35+
"avlSecond": {
36+
"type": "byte"
37+
},
38+
"avlVehName": {
39+
"type": "keyword"
40+
},
41+
"avlVehType": {
42+
"type": "keyword"
43+
},
44+
"avlVelocity": {
45+
"type": "byte"
46+
},
47+
"kytcADTLastCnt": {
48+
"type": "double"
49+
},
50+
"kytcADTLastCntYr": {
51+
"type": "double"
52+
},
53+
"kytcCityTxt": {
54+
"type": "keyword"
55+
},
56+
"kytcCountyName": {
57+
"type": "keyword"
58+
},
59+
"kytcCountyNmbr": {
60+
"type": "double"
61+
},
62+
"kytcDataCaptureTimeUTC": {
63+
"type": "date"
64+
},
65+
"kytcDateExistsET": {
66+
"type": "date"
67+
},
68+
"kytcDateExistsUTC": {
69+
"type": "date"
70+
},
71+
"kytcDayET": {
72+
"type": "byte"
73+
},
74+
"kytcDistrict": {
75+
"type": "double"
76+
},
77+
"kytcDryRateCalc": {
78+
"type": "double"
79+
},
80+
"kytcDryRateCalcCost": {
81+
"type": "double"
82+
},
83+
"kytcFunctionalClass": {
84+
"type": "keyword"
85+
},
86+
"kytcGovLevelTxt": {
87+
"type": "keyword"
88+
},
89+
"kytcHourET": {
90+
"type": "byte"
91+
},
92+
"kytcLiquidRateCalc": {
93+
"type": "double"
94+
},
95+
"kytcLiquidRateCalcCost": {
96+
"type": "double"
97+
},
98+
"kytcMPInitial": {
99+
"type": "double"
100+
},
101+
"kytcMinuteET": {
102+
"type": "byte"
103+
},
104+
"kytcMonthET": {
105+
"type": "byte"
106+
},
107+
"kytcRdName": {
108+
"fields": {
109+
"kw": {
110+
"type": "keyword"
111+
}
112+
},
113+
"type": "text"
114+
},
115+
"kytcRoadID": {
116+
"type": "double"
117+
},
118+
"kytcRoute": {
119+
"type": "keyword"
120+
},
121+
"kytcRouteLbl": {
122+
"type": "keyword"
123+
},
124+
"kytcRouteType": {
125+
"type": "keyword"
126+
},
127+
"kytcRtNumber": {
128+
"type": "double"
129+
},
130+
"kytcRtPrefix": {
131+
"type": "keyword"
132+
},
133+
"kytcRtSection": {
134+
"type": "double"
135+
},
136+
"kytcRtSuffix": {
137+
"type": "keyword"
138+
},
139+
"kytcRtUniqueInitial": {
140+
"type": "keyword"
141+
},
142+
"kytcSnapDistanceOnLine": {
143+
"type": "double"
144+
},
145+
"kytcSnapDistanceToLine": {
146+
"type": "double"
147+
},
148+
"kytcSnapHeadingRadians": {
149+
"type": "double"
150+
},
151+
"kytcSnapPercentAlong": {
152+
"type": "double"
153+
},
154+
"kytcSnapPoint": {
155+
"type": "geo_point"
156+
},
157+
"kytcSnapProbability": {
158+
"type": "double"
159+
},
160+
"kytcSnapStatus": {
161+
"type": "keyword"
162+
},
163+
"kytcSnapped10": {
164+
"type": "keyword"
165+
},
166+
"kytcSnapped1000": {
167+
"type": "keyword"
168+
},
169+
"kytcSnapped25": {
170+
"type": "keyword"
171+
},
172+
"kytcSnapped50": {
173+
"type": "keyword"
174+
},
175+
"kytcSnapped500": {
176+
"type": "keyword"
177+
},
178+
"kytcSnwIcePriority": {
179+
"type": "keyword"
180+
},
181+
"kytcTypeOp": {
182+
"type": "keyword"
183+
},
184+
"kytcWeekDayTxtET": {
185+
"type": "keyword"
186+
},
187+
"kytcYearDayET": {
188+
"type": "short"
189+
},
190+
"kytcYearET": {
191+
"type": "short"
192+
}
193+
};

x-pack/plugins/gis/server/sample_data/ky_salt_trucks/index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import path from 'path';
88
import { savedObjects } from './saved_objects';
99
import { countiesFieldMappings } from './counties_field_mappings';
10+
import { avlFieldMappings } from './avl_field_mappings';
1011

1112
export function kySaltTrucksSpecProvider() {
1213
return {
@@ -25,7 +26,14 @@ export function kySaltTrucksSpecProvider() {
2526
// index does not contain time fields so these are not used
2627
// Setting the fime field
2728
timeFields: ['there_are_no_timefields'],
28-
currentTimeMarker: '2018-01-09T00:00:00',
29+
currentTimeMarker: '2018-02-25T00:00:00',
30+
},
31+
{
32+
id: 'avl',
33+
dataPath: path.join(__dirname, './avl.json.gz'),
34+
fields: avlFieldMappings,
35+
timeFields: ['kytcDataCaptureTimeUTC', 'kytcDateExistsET', 'kytcDateExistsUTC'],
36+
currentTimeMarker: '2018-02-25T00:00:00'
2937
}
3038
]
3139
};

x-pack/plugins/gis/server/sample_data/ky_salt_trucks/saved_objects.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)