payload.js 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. /* eslint-disable sort-keys */
  20. /* eslint-disable no-magic-numbers */
  21. export default {
  22. cache_key: null,
  23. cached_dttm: null,
  24. cache_timeout: 86400,
  25. error: null,
  26. form_data: {
  27. color_picker: { a: 1, b: 0, g: 255, r: 14 },
  28. datasource: '5__table',
  29. granularity_sqla: 'dttm',
  30. grid_size: 20,
  31. groupby: [],
  32. mapbox_style: 'mapbox://styles/mapbox/dark-v9',
  33. point_radius: 'Auto',
  34. point_radius_fixed: { type: 'fix', value: 2000 },
  35. point_unit: 'square_m',
  36. row_limit: 5000,
  37. size: 'count',
  38. spatial: { latCol: 'LAT', lonCol: 'LON', type: 'latlong' },
  39. time_grain_sqla: null,
  40. viewport: {
  41. bearing: -4.952916738791771,
  42. latitude: 37.76024135844065,
  43. longitude: -122.41827069521386,
  44. pitch: 4.750411100577438,
  45. zoom: 14.161641703941438,
  46. },
  47. viz_type: 'deck_screengrid',
  48. slice_id: 67,
  49. time_range: ' : ',
  50. adhoc_filters: [
  51. {
  52. clause: 'WHERE',
  53. expressionType: 'SIMPLE',
  54. filterOptionName: '341bf332-81fe-4f9e-837e-90a4d8b8b9f0',
  55. comparator: '',
  56. operator: 'IS NOT NULL',
  57. subject: 'LAT',
  58. },
  59. {
  60. clause: 'WHERE',
  61. expressionType: 'SIMPLE',
  62. filterOptionName: '453dd738-e394-4ea2-bbe9-a7b59bf5e0cc',
  63. comparator: '',
  64. operator: 'IS NOT NULL',
  65. subject: 'LON',
  66. },
  67. ],
  68. where: '',
  69. having: '',
  70. filters: [
  71. { col: 'LAT', op: 'IS NOT NULL', val: '' },
  72. { col: 'LON', op: 'IS NOT NULL', val: '' },
  73. ],
  74. },
  75. is_cached: false,
  76. query:
  77. 'SELECT "LAT" AS "LAT",\n "LON" AS "LON",\n COUNT(*) AS count\nFROM\n (SELECT datetime,\n ROUND(LON*10000000)/10000000 as LON,\n ROUND(LAT*10000000)/10000000 as LAT, NUMBER , STREET,\n UNIT,\n CITY,\n DISTRICT,\n REGION,\n POSTCODE,\n ID occupancy,\n radius_miles,\n geohash,\n delimited\n FROM long_lat) AS expr_qry\nWHERE "LAT" IS NOT NULL\n AND "LON" IS NOT NULL\nGROUP BY "LAT",\n "LON"\nORDER BY count DESC\nLIMIT 5000\nOFFSET 0',
  78. status: 'success',
  79. stacktrace: null,
  80. rowcount: 5000,
  81. data: {
  82. features: [
  83. { position: [-122.4221936, 37.7786083], weight: 2415, __timestamp: null },
  84. { position: [-122.4101989, 37.7878771], weight: 2391, __timestamp: null },
  85. { position: [-122.4205965, 37.8054735], weight: 1349, __timestamp: null },
  86. { position: [-122.4125137, 37.7908413], weight: 1004, __timestamp: null },
  87. { position: [-122.4088144, 37.7912984], weight: 816, __timestamp: null },
  88. { position: [-122.3934248, 37.7776271], weight: 610, __timestamp: null },
  89. { position: [-122.390972, 37.789376], weight: 460, __timestamp: null },
  90. { position: [-122.3804676, 37.7334388], weight: 453, __timestamp: null },
  91. { position: [-122.4214063, 37.7813858], weight: 453, __timestamp: null },
  92. { position: [-122.3961419, 37.7905823], weight: 422, __timestamp: null },
  93. { position: [-122.3922757, 37.7858294], weight: 376, __timestamp: null },
  94. { position: [-122.3903881, 37.7826463], weight: 359, __timestamp: null },
  95. { position: [-122.3936422, 37.7870311], weight: 353, __timestamp: null },
  96. { position: [-122.435635, 37.7852314], weight: 306, __timestamp: null },
  97. { position: [-122.3971336, 37.7790975], weight: 301, __timestamp: null },
  98. { position: [-122.3921161, 37.7864536], weight: 300, __timestamp: null },
  99. { position: [-122.390611, 37.7876797], weight: 292, __timestamp: null },
  100. { position: [-122.4055041, 37.804244], weight: 291, __timestamp: null },
  101. { position: [-122.4136476, 37.7910263], weight: 264, __timestamp: null },
  102. { position: [-122.4224908, 37.7867552], weight: 247, __timestamp: null },
  103. { position: [-122.4123203, 37.7784493], weight: 240, __timestamp: null },
  104. { position: [-122.4368896, 37.7822303], weight: 239, __timestamp: null },
  105. { position: [-122.389625, 37.7806302], weight: 237, __timestamp: null },
  106. { position: [-122.3990823, 37.7831803], weight: 237, __timestamp: null },
  107. { position: [-122.3959614, 37.7740032], weight: 219, __timestamp: null },
  108. { position: [-122.4041783, 37.8044503], weight: 216, __timestamp: null },
  109. { position: [-122.4005582, 37.7706919], weight: 210, __timestamp: null },
  110. { position: [-122.4040784, 37.8034687], weight: 209, __timestamp: null },
  111. { position: [-122.418513, 37.7717131], weight: 208, __timestamp: null },
  112. { position: [-122.4127266, 37.7899451], weight: 202, __timestamp: null },
  113. { position: [-122.402292, 37.7808479], weight: 201, __timestamp: null },
  114. { position: [-122.391326, 37.7892785], weight: 200, __timestamp: null },
  115. { position: [-122.3882041, 37.7195347], weight: 198, __timestamp: null },
  116. { position: [-122.3917766, 37.7876762], weight: 197, __timestamp: null },
  117. { position: [-122.4151204, 37.78524], weight: 196, __timestamp: null },
  118. { position: [-122.3902944, 37.7836002], weight: 191, __timestamp: null },
  119. { position: [-122.4162567, 37.775248], weight: 190, __timestamp: null },
  120. { position: [-122.404391, 37.7853957], weight: 190, __timestamp: null },
  121. { position: [-122.479301, 37.7269377], weight: 180, __timestamp: null },
  122. { position: [-122.396631, 37.7536653], weight: 176, __timestamp: null },
  123. { position: [-122.3990994, 37.7866056], weight: 175, __timestamp: null },
  124. { position: [-122.3990304, 37.7857742], weight: 166, __timestamp: null },
  125. { position: [-122.4032414, 37.7640112], weight: 165, __timestamp: null },
  126. { position: [-122.4242026, 37.7867158], weight: 165, __timestamp: null },
  127. { position: [-122.4258311, 37.7863612], weight: 164, __timestamp: null },
  128. { position: [-122.4125675, 37.7903477], weight: 161, __timestamp: null },
  129. ],
  130. mapboxApiKey:
  131. 'pk.eyJ1Ijoia3Jpc3R3IiwiYSI6ImNqbGg1N242NTFlczczdnBhazViMjgzZ2sifQ.lUneM-o3NucXN189EYyXxQ',
  132. metricLabels: ['count'],
  133. },
  134. };