payload.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. extruded: true,
  30. granularity_sqla: 'dttm',
  31. grid_size: 120,
  32. groupby: [],
  33. mapbox_style: 'mapbox://styles/mapbox/satellite-streets-v9',
  34. point_radius: 'Auto',
  35. point_radius_fixed: { type: 'fix', value: 2000 },
  36. point_radius_unit: 'Pixels',
  37. row_limit: 5000,
  38. size: 'count',
  39. spatial: { latCol: 'LAT', lonCol: 'LON', type: 'latlong' },
  40. time_grain_sqla: null,
  41. viewport: {
  42. bearing: 155.80099696026355,
  43. latitude: 37.7942314882596,
  44. longitude: -122.42066918995666,
  45. pitch: 53.470800300695146,
  46. zoom: 12.699690845482069,
  47. },
  48. viz_type: 'deck_grid',
  49. slice_id: 69,
  50. time_range: ' : ',
  51. adhoc_filters: [
  52. {
  53. clause: 'WHERE',
  54. expressionType: 'SIMPLE',
  55. filterOptionName: '72912258-6f4f-4f04-a570-58317ca49b11',
  56. comparator: '',
  57. operator: 'IS NOT NULL',
  58. subject: 'LAT',
  59. },
  60. {
  61. clause: 'WHERE',
  62. expressionType: 'SIMPLE',
  63. filterOptionName: '7e19669b-48ef-4be8-a7e1-8378dedb4c00',
  64. comparator: '',
  65. operator: 'IS NOT NULL',
  66. subject: 'LON',
  67. },
  68. ],
  69. where: '',
  70. having: '',
  71. filters: [
  72. { col: 'LAT', op: 'IS NOT NULL', val: '' },
  73. { col: 'LON', op: 'IS NOT NULL', val: '' },
  74. ],
  75. },
  76. is_cached: false,
  77. query:
  78. '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',
  79. status: 'success',
  80. stacktrace: null,
  81. rowcount: 5000,
  82. data: {
  83. features: [
  84. { position: [-122.4221936, 37.7786083], weight: 2415 },
  85. { position: [-122.4101989, 37.7878771], weight: 2391 },
  86. { position: [-122.4205965, 37.8054735], weight: 1349 },
  87. { position: [-122.4125137, 37.7908413], weight: 1004 },
  88. { position: [-122.4088144, 37.7912984], weight: 816 },
  89. { position: [-122.3934248, 37.7776271], weight: 610 },
  90. { position: [-122.390972, 37.789376], weight: 460 },
  91. { position: [-122.3804676, 37.7334388], weight: 453 },
  92. { position: [-122.4214063, 37.7813858], weight: 453 },
  93. { position: [-122.3961419, 37.7905823], weight: 422 },
  94. { position: [-122.3922757, 37.7858294], weight: 376 },
  95. { position: [-122.3903881, 37.7826463], weight: 359 },
  96. { position: [-122.3936422, 37.7870311], weight: 353 },
  97. { position: [-122.435635, 37.7852314], weight: 306 },
  98. { position: [-122.3971336, 37.7790975], weight: 301 },
  99. { position: [-122.3921161, 37.7864536], weight: 300 },
  100. { position: [-122.390611, 37.7876797], weight: 292 },
  101. { position: [-122.4055041, 37.804244], weight: 291 },
  102. { position: [-122.4136476, 37.7910263], weight: 264 },
  103. { position: [-122.4224908, 37.7867552], weight: 247 },
  104. { position: [-122.4123203, 37.7784493], weight: 240 },
  105. { position: [-122.4368896, 37.7822303], weight: 239 },
  106. { position: [-122.389625, 37.7806302], weight: 237 },
  107. ],
  108. mapboxApiKey:
  109. 'pk.eyJ1Ijoia3Jpc3R3IiwiYSI6ImNqbGg1N242NTFlczczdnBhazViMjgzZ2sifQ.lUneM-o3NucXN189EYyXxQ',
  110. metricLabels: ['count'],
  111. },
  112. };