geohash.json 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {
  2. "about": {
  3. "trial": false,
  4. "author": {
  5. "name": "EMQ",
  6. "email": "contact@emqx.io",
  7. "company": "EMQ Technologies Co., Ltd",
  8. "website": "https://www.emqx.io"
  9. },
  10. "helpUrl": {
  11. "en_US": "https://github.com/lf-edge/ekuiper/blob/master/docs/en_US/sqls/custom_functions.md",
  12. "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/sqls/custom_functions.md"
  13. },
  14. "description": {
  15. "en_US": "",
  16. "zh_CN": ""
  17. }
  18. },
  19. "libs": ["github.com/mmcloughlin/geohash@master"],
  20. "name":"geohash",
  21. "functions": [{
  22. "name": "geohashEncode",
  23. "example": "geohashEncode(la,lo )",
  24. "hint": {
  25. "en_US": "Encode latitude and longitude as characters",
  26. "zh_CN": "将经纬度编码为字符"
  27. }
  28. }, {
  29. "name": "geohashEncodeInt",
  30. "example": "geohashEncodeInt(la,lo )",
  31. "hint": {
  32. "en_US": "Encode latitude and longitude as numbers",
  33. "zh_CN": "将经纬度编码为数字"
  34. }
  35. }, {
  36. "name": "geohashDecode",
  37. "example": "geohashDecode(hash )",
  38. "hint": {
  39. "en_US": "Decode characters into latitude and longitude",
  40. "zh_CN": "将字符解码为经纬度"
  41. }
  42. }, {
  43. "name": "geohashDecodeInt",
  44. "example": "geohashDecodeInt(hash)",
  45. "hint": {
  46. "en_US": "Decode numbers into latitude and longitude",
  47. "zh_CN": "将数字解码为经纬度"
  48. }
  49. }, {
  50. "name": "geohashBoundingBox",
  51. "example": "geohashBoundingBox(hash )",
  52. "hint": {
  53. "en_US": "Area for calculating character codes",
  54. "zh_CN": "计算字符编码的区域"
  55. }
  56. }, {
  57. "name": "geohashBoundingBoxInt",
  58. "example": "geohashBoundingBoxInt(hash)",
  59. "hint": {
  60. "en_US": "Calculate the area of digital coding",
  61. "zh_CN": "计算数字编码的区域"
  62. }
  63. }, {
  64. "name": "geohashNeighbor",
  65. "example": "geohashNeighbor(hash,direction )",
  66. "hint": {
  67. "en_US": "Calculate the neighbor of the corresponding direction of the character encoding",
  68. "zh_CN": "计算字符编码对应方向的邻居"
  69. }
  70. }, {
  71. "name": "geohashNeighborInt",
  72. "example": "geohashNeighborInt(hash,direction )",
  73. "hint": {
  74. "en_US": "Calculate the neighbors in the corresponding direction of the digital code",
  75. "zh_CN": "计算数字编码对应方向的邻居"
  76. }
  77. }, {
  78. "name": "geohashNeighbors",
  79. "example": "geohashNeighbors(hash)",
  80. "hint": {
  81. "en_US": "Calculate all neighbors of character encoding",
  82. "zh_CN": "计算字符编码的所有邻居"
  83. }
  84. }, {
  85. "name": "geohashNeighborsInt",
  86. "example": "geohashNeighborsInt(hash)",
  87. "hint": {
  88. "en_US": "Calculate all neighbors of digital encoding",
  89. "zh_CN": "计算数字编码的所有邻居"
  90. }
  91. }]
  92. }