123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488 |
- {
- "about": {
- "trial": false,
- "author": {
- "name": "EMQ",
- "email": "contact@emqx.io",
- "company": "EMQ Technologies Co., Ltd",
- "website": "https://www.emqx.io"
- },
- "helpUrl": {
- "en_US": "https://github.com/lf-edge/ekuiper/blob/master/docs/en_US/sqls/custom_functions.md",
- "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/sqls/custom_functions.md"
- },
- "description": {
- "en_US": "",
- "zh_CN": ""
- }
- },
- "libs": ["github.com/mmcloughlin/geohash@master"],
- "name":"geohash",
- "functions": [{
- "name": "geohashEncode",
- "example": "geohashEncode(la,lo)",
- "hint": {
- "en_US": "Encode latitude and longitude as characters",
- "zh_CN": "将经纬度编码为字符"
- },
- "args": [
- {
- "name": "la",
- "hidden": true,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input la",
- "zh_CN": "输入经度"
- },
- "label": {
- "en_US": "Input la",
- "zh_CN": "输入经度"
- }
- },
- {
- "name": "lo",
- "hidden": true,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input lo",
- "zh_CN": "输入纬度"
- },
- "label": {
- "en_US": "Input lo",
- "zh_CN": "输入纬度"
- }
- }
- ],
- "outputs": [
- {
- "label": {
- "en_US": "Output",
- "zh_CN": "输出"
- },
- "value": "geohashEncode"
- }
- ],
- "node": {
- "category": "abc",
- "icon": "iconPath",
- "label": {
- "en_US": "geohashEncode",
- "zh_CN": "geohashEncode"
- }
- }
- }, {
- "name": "geohashEncodeInt",
- "example": "geohashEncodeInt(la,lo )",
- "hint": {
- "en_US": "Encode latitude and longitude as numbers",
- "zh_CN": "将经纬度编码为数字"
- },
- "args": [
- {
- "name": "la",
- "hidden": true,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input la",
- "zh_CN": "输入经度"
- },
- "label": {
- "en_US": "Input la",
- "zh_CN": "输入经度"
- }
- },
- {
- "name": "lo",
- "hidden": true,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input lo",
- "zh_CN": "输入纬度"
- },
- "label": {
- "en_US": "Input lo",
- "zh_CN": "输入纬度"
- }
- }
- ],
- "outputs": [
- {
- "label": {
- "en_US": "Output",
- "zh_CN": "输出"
- },
- "value": "geohashEncodeInt"
- }
- ],
- "node": {
- "category": "abc",
- "icon": "iconPath",
- "label": {
- "en_US": "geohashEncodeInt",
- "zh_CN": "geohashEncodeInt"
- }
- }
- }, {
- "name": "geohashDecode",
- "example": "geohashDecode(hash )",
- "hint": {
- "en_US": "Decode characters into latitude and longitude",
- "zh_CN": "将字符解码为经纬度"
- },
- "args": [
- {
- "name": "data",
- "hidden": true,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- }
- }
- ],
- "outputs": [
- {
- "label": {
- "en_US": "Output",
- "zh_CN": "输出"
- },
- "value": "geohashDecode"
- }
- ],
- "node": {
- "category": "abc",
- "icon": "iconPath",
- "label": {
- "en_US": "geohashDecode",
- "zh_CN": "geohashDecode"
- }
- }
- }, {
- "name": "geohashDecodeInt",
- "example": "geohashDecodeInt(hash)",
- "hint": {
- "en_US": "Decode numbers into latitude and longitude",
- "zh_CN": "将数字解码为经纬度"
- },
- "args": [
- {
- "name": "data",
- "hidden": true,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- }
- }
- ],
- "outputs": [
- {
- "label": {
- "en_US": "Output",
- "zh_CN": "输出"
- },
- "value": "geohashDecodeInt"
- }
- ],
- "node": {
- "category": "abc",
- "icon": "iconPath",
- "label": {
- "en_US": "geohashDecodeInt",
- "zh_CN": "geohashDecodeInt"
- }
- }
- }, {
- "name": "geohashBoundingBox",
- "example": "geohashBoundingBox(hash )",
- "hint": {
- "en_US": "Area for calculating character codes",
- "zh_CN": "计算字符编码的区域"
- },
- "args": [
- {
- "name": "data",
- "hidden": true,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- }
- }
- ],
- "outputs": [
- {
- "label": {
- "en_US": "Output",
- "zh_CN": "输出"
- },
- "value": "geohashBoundingBox"
- }
- ],
- "node": {
- "category": "abc",
- "icon": "iconPath",
- "label": {
- "en_US": "geohashBoundingBox",
- "zh_CN": "geohashBoundingBox"
- }
- }
- }, {
- "name": "geohashBoundingBoxInt",
- "example": "geohashBoundingBoxInt(hash)",
- "hint": {
- "en_US": "Calculate the area of digital coding",
- "zh_CN": "计算数字编码的区域"
- },
- "args": [
- {
- "name": "data",
- "hidden": true,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- }
- }
- ],
- "outputs": [
- {
- "label": {
- "en_US": "Output",
- "zh_CN": "输出"
- },
- "value": "geohashBoundingBoxInt"
- }
- ],
- "node": {
- "category": "abc",
- "icon": "iconPath",
- "label": {
- "en_US": "geohashBoundingBoxInt",
- "zh_CN": "geohashBoundingBoxInt"
- }
- }
- }, {
- "name": "geohashNeighbor",
- "example": "geohashNeighbor(hash,direction )",
- "hint": {
- "en_US": "Calculate the neighbor of the corresponding direction of the character encoding",
- "zh_CN": "计算字符编码对应方向的邻居"
- },
- "args": [
- {
- "name": "hash",
- "hidden": true,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- }
- },
- {
- "name": "direction",
- "hidden": true,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input direction",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Input direction",
- "zh_CN": "输入数据"
- }
- }
- ],
- "outputs": [
- {
- "label": {
- "en_US": "Output",
- "zh_CN": "输出"
- },
- "value": "geohashNeighbor"
- }
- ],
- "node": {
- "category": "abc",
- "icon": "iconPath",
- "label": {
- "en_US": "geohashNeighbor",
- "zh_CN": "geohashNeighbor"
- }
- }
- }, {
- "name": "geohashNeighborInt",
- "example": "geohashNeighborInt(hash,direction )",
- "hint": {
- "en_US": "Calculate the neighbors in the corresponding direction of the digital code",
- "zh_CN": "计算数字编码对应方向的邻居"
- },
- "args": [
- {
- "name": "hash",
- "hidden": true,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- }
- },
- {
- "name": "direction",
- "hidden": true,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input direction",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Input direction",
- "zh_CN": "输入数据"
- }
- }
- ],
- "outputs": [
- {
- "label": {
- "en_US": "Output",
- "zh_CN": "输出"
- },
- "value": "geohashNeighborInt"
- }
- ],
- "node": {
- "category": "abc",
- "icon": "iconPath",
- "label": {
- "en_US": "geohashNeighborInt",
- "zh_CN": "geohashNeighborInt"
- }
- }
- }, {
- "name": "geohashNeighbors",
- "example": "geohashNeighbors(hash)",
- "hint": {
- "en_US": "Calculate all neighbors of character encoding",
- "zh_CN": "计算字符编码的所有邻居"
- },
- "args": [
- {
- "name": "hash",
- "hidden": true,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- }
- }
- ],
- "outputs": [
- {
- "label": {
- "en_US": "Output",
- "zh_CN": "输出"
- },
- "value": "geohashNeighbors"
- }
- ],
- "node": {
- "category": "abc",
- "icon": "iconPath",
- "label": {
- "en_US": "geohashNeighbors",
- "zh_CN": "geohashNeighbors"
- }
- }
- }, {
- "name": "geohashNeighborsInt",
- "example": "geohashNeighborsInt(hash)",
- "hint": {
- "en_US": "Calculate all neighbors of digital encoding",
- "zh_CN": "计算数字编码的所有邻居"
- },
- "args": [{
- "name": "hash",
- "hidden": true,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- }
- }],
- "outputs": [{
- "label": {
- "en_US": "Output",
- "zh_CN": "输出"
- },
- "value": "geohashNeighbors"
- }],
- "node": {
- "category": "abc",
- "icon": "iconPath",
- "label": {
- "en_US": "geohashNeighbors",
- "zh_CN": "geohashNeighbors"
- }
- }
- }]
- }
|