geohash.json 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  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://ekuiper.org/docs/en/latest/sqls/custom_functions.html",
  12. "zh_CN": "https://ekuiper.org/docs/zh/latest/sqls/custom_functions.html"
  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. "args": [
  29. {
  30. "name": "la",
  31. "hidden": true,
  32. "optional": false,
  33. "control": "text",
  34. "type": "string",
  35. "hint": {
  36. "en_US": "Input la",
  37. "zh_CN": "输入经度"
  38. },
  39. "label": {
  40. "en_US": "Input la",
  41. "zh_CN": "输入经度"
  42. }
  43. },
  44. {
  45. "name": "lo",
  46. "hidden": true,
  47. "optional": false,
  48. "control": "text",
  49. "type": "string",
  50. "hint": {
  51. "en_US": "Input lo",
  52. "zh_CN": "输入纬度"
  53. },
  54. "label": {
  55. "en_US": "Input lo",
  56. "zh_CN": "输入纬度"
  57. }
  58. }
  59. ],
  60. "outputs": [
  61. {
  62. "label": {
  63. "en_US": "Output",
  64. "zh_CN": "输出"
  65. },
  66. "value": "geohashEncode"
  67. }
  68. ],
  69. "node": {
  70. "category": "abc",
  71. "icon": "iconPath",
  72. "label": {
  73. "en_US": "geohashEncode",
  74. "zh_CN": "geohashEncode"
  75. }
  76. }
  77. }, {
  78. "name": "geohashEncodeInt",
  79. "example": "geohashEncodeInt(la,lo )",
  80. "hint": {
  81. "en_US": "Encode latitude and longitude as numbers",
  82. "zh_CN": "将经纬度编码为数字"
  83. },
  84. "args": [
  85. {
  86. "name": "la",
  87. "hidden": true,
  88. "optional": false,
  89. "control": "text",
  90. "type": "string",
  91. "hint": {
  92. "en_US": "Input la",
  93. "zh_CN": "输入经度"
  94. },
  95. "label": {
  96. "en_US": "Input la",
  97. "zh_CN": "输入经度"
  98. }
  99. },
  100. {
  101. "name": "lo",
  102. "hidden": true,
  103. "optional": false,
  104. "control": "text",
  105. "type": "string",
  106. "hint": {
  107. "en_US": "Input lo",
  108. "zh_CN": "输入纬度"
  109. },
  110. "label": {
  111. "en_US": "Input lo",
  112. "zh_CN": "输入纬度"
  113. }
  114. }
  115. ],
  116. "outputs": [
  117. {
  118. "label": {
  119. "en_US": "Output",
  120. "zh_CN": "输出"
  121. },
  122. "value": "geohashEncodeInt"
  123. }
  124. ],
  125. "node": {
  126. "category": "abc",
  127. "icon": "iconPath",
  128. "label": {
  129. "en_US": "geohashEncodeInt",
  130. "zh_CN": "geohashEncodeInt"
  131. }
  132. }
  133. }, {
  134. "name": "geohashDecode",
  135. "example": "geohashDecode(hash )",
  136. "hint": {
  137. "en_US": "Decode characters into latitude and longitude",
  138. "zh_CN": "将字符解码为经纬度"
  139. },
  140. "args": [
  141. {
  142. "name": "data",
  143. "hidden": true,
  144. "optional": false,
  145. "control": "text",
  146. "type": "string",
  147. "hint": {
  148. "en_US": "Input data",
  149. "zh_CN": "输入数据"
  150. },
  151. "label": {
  152. "en_US": "Input data",
  153. "zh_CN": "输入数据"
  154. }
  155. }
  156. ],
  157. "outputs": [
  158. {
  159. "label": {
  160. "en_US": "Output",
  161. "zh_CN": "输出"
  162. },
  163. "value": "geohashDecode"
  164. }
  165. ],
  166. "node": {
  167. "category": "abc",
  168. "icon": "iconPath",
  169. "label": {
  170. "en_US": "geohashDecode",
  171. "zh_CN": "geohashDecode"
  172. }
  173. }
  174. }, {
  175. "name": "geohashDecodeInt",
  176. "example": "geohashDecodeInt(hash)",
  177. "hint": {
  178. "en_US": "Decode numbers into latitude and longitude",
  179. "zh_CN": "将数字解码为经纬度"
  180. },
  181. "args": [
  182. {
  183. "name": "data",
  184. "hidden": true,
  185. "optional": false,
  186. "control": "text",
  187. "type": "string",
  188. "hint": {
  189. "en_US": "Input data",
  190. "zh_CN": "输入数据"
  191. },
  192. "label": {
  193. "en_US": "Input data",
  194. "zh_CN": "输入数据"
  195. }
  196. }
  197. ],
  198. "outputs": [
  199. {
  200. "label": {
  201. "en_US": "Output",
  202. "zh_CN": "输出"
  203. },
  204. "value": "geohashDecodeInt"
  205. }
  206. ],
  207. "node": {
  208. "category": "abc",
  209. "icon": "iconPath",
  210. "label": {
  211. "en_US": "geohashDecodeInt",
  212. "zh_CN": "geohashDecodeInt"
  213. }
  214. }
  215. }, {
  216. "name": "geohashBoundingBox",
  217. "example": "geohashBoundingBox(hash )",
  218. "hint": {
  219. "en_US": "Area for calculating character codes",
  220. "zh_CN": "计算字符编码的区域"
  221. },
  222. "args": [
  223. {
  224. "name": "data",
  225. "hidden": true,
  226. "optional": false,
  227. "control": "text",
  228. "type": "string",
  229. "hint": {
  230. "en_US": "Input data",
  231. "zh_CN": "输入数据"
  232. },
  233. "label": {
  234. "en_US": "Input data",
  235. "zh_CN": "输入数据"
  236. }
  237. }
  238. ],
  239. "outputs": [
  240. {
  241. "label": {
  242. "en_US": "Output",
  243. "zh_CN": "输出"
  244. },
  245. "value": "geohashBoundingBox"
  246. }
  247. ],
  248. "node": {
  249. "category": "abc",
  250. "icon": "iconPath",
  251. "label": {
  252. "en_US": "geohashBoundingBox",
  253. "zh_CN": "geohashBoundingBox"
  254. }
  255. }
  256. }, {
  257. "name": "geohashBoundingBoxInt",
  258. "example": "geohashBoundingBoxInt(hash)",
  259. "hint": {
  260. "en_US": "Calculate the area of digital coding",
  261. "zh_CN": "计算数字编码的区域"
  262. },
  263. "args": [
  264. {
  265. "name": "data",
  266. "hidden": true,
  267. "optional": false,
  268. "control": "text",
  269. "type": "string",
  270. "hint": {
  271. "en_US": "Input data",
  272. "zh_CN": "输入数据"
  273. },
  274. "label": {
  275. "en_US": "Input data",
  276. "zh_CN": "输入数据"
  277. }
  278. }
  279. ],
  280. "outputs": [
  281. {
  282. "label": {
  283. "en_US": "Output",
  284. "zh_CN": "输出"
  285. },
  286. "value": "geohashBoundingBoxInt"
  287. }
  288. ],
  289. "node": {
  290. "category": "abc",
  291. "icon": "iconPath",
  292. "label": {
  293. "en_US": "geohashBoundingBoxInt",
  294. "zh_CN": "geohashBoundingBoxInt"
  295. }
  296. }
  297. }, {
  298. "name": "geohashNeighbor",
  299. "example": "geohashNeighbor(hash,direction )",
  300. "hint": {
  301. "en_US": "Calculate the neighbor of the corresponding direction of the character encoding",
  302. "zh_CN": "计算字符编码对应方向的邻居"
  303. },
  304. "args": [
  305. {
  306. "name": "hash",
  307. "hidden": true,
  308. "optional": false,
  309. "control": "text",
  310. "type": "string",
  311. "hint": {
  312. "en_US": "Input data",
  313. "zh_CN": "输入数据"
  314. },
  315. "label": {
  316. "en_US": "Input data",
  317. "zh_CN": "输入数据"
  318. }
  319. },
  320. {
  321. "name": "direction",
  322. "hidden": true,
  323. "optional": false,
  324. "control": "text",
  325. "type": "string",
  326. "hint": {
  327. "en_US": "Input direction",
  328. "zh_CN": "输入数据"
  329. },
  330. "label": {
  331. "en_US": "Input direction",
  332. "zh_CN": "输入数据"
  333. }
  334. }
  335. ],
  336. "outputs": [
  337. {
  338. "label": {
  339. "en_US": "Output",
  340. "zh_CN": "输出"
  341. },
  342. "value": "geohashNeighbor"
  343. }
  344. ],
  345. "node": {
  346. "category": "abc",
  347. "icon": "iconPath",
  348. "label": {
  349. "en_US": "geohashNeighbor",
  350. "zh_CN": "geohashNeighbor"
  351. }
  352. }
  353. }, {
  354. "name": "geohashNeighborInt",
  355. "example": "geohashNeighborInt(hash,direction )",
  356. "hint": {
  357. "en_US": "Calculate the neighbors in the corresponding direction of the digital code",
  358. "zh_CN": "计算数字编码对应方向的邻居"
  359. },
  360. "args": [
  361. {
  362. "name": "hash",
  363. "hidden": true,
  364. "optional": false,
  365. "control": "text",
  366. "type": "string",
  367. "hint": {
  368. "en_US": "Input data",
  369. "zh_CN": "输入数据"
  370. },
  371. "label": {
  372. "en_US": "Input data",
  373. "zh_CN": "输入数据"
  374. }
  375. },
  376. {
  377. "name": "direction",
  378. "hidden": true,
  379. "optional": false,
  380. "control": "text",
  381. "type": "string",
  382. "hint": {
  383. "en_US": "Input direction",
  384. "zh_CN": "输入数据"
  385. },
  386. "label": {
  387. "en_US": "Input direction",
  388. "zh_CN": "输入数据"
  389. }
  390. }
  391. ],
  392. "outputs": [
  393. {
  394. "label": {
  395. "en_US": "Output",
  396. "zh_CN": "输出"
  397. },
  398. "value": "geohashNeighborInt"
  399. }
  400. ],
  401. "node": {
  402. "category": "abc",
  403. "icon": "iconPath",
  404. "label": {
  405. "en_US": "geohashNeighborInt",
  406. "zh_CN": "geohashNeighborInt"
  407. }
  408. }
  409. }, {
  410. "name": "geohashNeighbors",
  411. "example": "geohashNeighbors(hash)",
  412. "hint": {
  413. "en_US": "Calculate all neighbors of character encoding",
  414. "zh_CN": "计算字符编码的所有邻居"
  415. },
  416. "args": [
  417. {
  418. "name": "hash",
  419. "hidden": true,
  420. "optional": false,
  421. "control": "text",
  422. "type": "string",
  423. "hint": {
  424. "en_US": "Input data",
  425. "zh_CN": "输入数据"
  426. },
  427. "label": {
  428. "en_US": "Input data",
  429. "zh_CN": "输入数据"
  430. }
  431. }
  432. ],
  433. "outputs": [
  434. {
  435. "label": {
  436. "en_US": "Output",
  437. "zh_CN": "输出"
  438. },
  439. "value": "geohashNeighbors"
  440. }
  441. ],
  442. "node": {
  443. "category": "abc",
  444. "icon": "iconPath",
  445. "label": {
  446. "en_US": "geohashNeighbors",
  447. "zh_CN": "geohashNeighbors"
  448. }
  449. }
  450. }, {
  451. "name": "geohashNeighborsInt",
  452. "example": "geohashNeighborsInt(hash)",
  453. "hint": {
  454. "en_US": "Calculate all neighbors of digital encoding",
  455. "zh_CN": "计算数字编码的所有邻居"
  456. },
  457. "args": [{
  458. "name": "hash",
  459. "hidden": true,
  460. "optional": false,
  461. "control": "text",
  462. "type": "string",
  463. "hint": {
  464. "en_US": "Input data",
  465. "zh_CN": "输入数据"
  466. },
  467. "label": {
  468. "en_US": "Input data",
  469. "zh_CN": "输入数据"
  470. }
  471. }],
  472. "outputs": [{
  473. "label": {
  474. "en_US": "Output",
  475. "zh_CN": "输出"
  476. },
  477. "value": "geohashNeighbors"
  478. }],
  479. "node": {
  480. "category": "abc",
  481. "icon": "iconPath",
  482. "label": {
  483. "en_US": "geohashNeighbors",
  484. "zh_CN": "geohashNeighbors"
  485. }
  486. }
  487. }]
  488. }