123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465 |
- {
- "about": {
- "trial": false,
- "author": {
- "name": "EMQ",
- "email": "contact@emqx.io",
- "company": "EMQ Technologies Co., Ltd",
- "website": "https://www.emqx.io"
- },
- "helpUrl": {
- "en_US": "https://ekuiper.org/docs/en/latest/sqls/custom_functions.html",
- "zh_CN": "https://ekuiper.org/docs/zh/latest/sqls/custom_functions.html"
- },
- "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": "latitude",
- "optional": false,
- "control": "field",
- "type": "string",
- "hint": {
- "en_US": "Input latitude",
- "zh_CN": "输入经度"
- },
- "label": {
- "en_US": "Latitude",
- "zh_CN": "经度"
- }
- },
- {
- "name": "longitude",
- "optional": false,
- "control": "field",
- "type": "string",
- "hint": {
- "en_US": "Input longitude",
- "zh_CN": "输入纬度"
- },
- "label": {
- "en_US": "Longitude",
- "zh_CN": "输入纬度"
- }
- }
- ],
- "return": {
- "type": "int",
- "hint": {
- "en_US": "Encoded string",
- "zh_CN": "编码字符"
- }
- },
- "node": {
- "category": "function",
- "icon": "iconPath",
- "label": {
- "en_US": "Geohash Encode",
- "zh_CN": "Geohash 编码"
- }
- }
- }, {
- "name": "geohashEncodeInt",
- "example": "geohashEncodeInt(la,lo )",
- "hint": {
- "en_US": "Encode latitude and longitude as numbers",
- "zh_CN": "将经纬度编码为数字"
- },
- "args": [
- {
- "name": "latitude",
- "optional": false,
- "control": "field",
- "type": "string",
- "hint": {
- "en_US": "Input latitude",
- "zh_CN": "输入经度"
- },
- "label": {
- "en_US": "Latitude",
- "zh_CN": "经度"
- }
- },
- {
- "name": "longitude",
- "optional": false,
- "control": "field",
- "type": "string",
- "hint": {
- "en_US": "Input longitude",
- "zh_CN": "输入纬度"
- },
- "label": {
- "en_US": "Longitude",
- "zh_CN": "输入纬度"
- }
- }
- ],
- "return": {
- "type": "int",
- "hint": {
- "en_US": "Encoded value",
- "zh_CN": "编码值"
- }
- },
- "node": {
- "category": "function",
- "icon": "iconPath",
- "label": {
- "en_US": "Geohash Encode to Integer",
- "zh_CN": "Geohash 整数编码"
- }
- }
- }, {
- "name": "geohashDecode",
- "example": "geohashDecode(hash )",
- "hint": {
- "en_US": "Decode characters into latitude and longitude",
- "zh_CN": "将字符解码为经纬度"
- },
- "args": [
- {
- "name": "data",
- "hidden": false,
- "optional": false,
- "control": "field",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Field",
- "zh_CN": "输入数据"
- }
- }
- ],
- "return": {
- "type": "struct",
- "hint": {
- "en_US": "Decoded Value",
- "zh_CN": "解码值"
- }
- },
- "node": {
- "category": "function",
- "icon": "iconPath",
- "label": {
- "en_US": "Geohash Decode",
- "zh_CN": "Geohash 解码"
- }
- }
- }, {
- "name": "geohashDecodeInt",
- "example": "geohashDecodeInt(hash)",
- "hint": {
- "en_US": "Decode numbers into latitude and longitude",
- "zh_CN": "将数字解码为经纬度"
- },
- "args": [
- {
- "name": "data",
- "hidden": false,
- "optional": false,
- "control": "field",
- "type": "number",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Data",
- "zh_CN": "输入数据"
- }
- }
- ],
- "return": {
- "type": "struct",
- "hint": {
- "en_US": "Decoded Value",
- "zh_CN": "解码值"
- }
- },
- "node": {
- "category": "function",
- "icon": "iconPath",
- "label": {
- "en_US": "Geohash Decode Integer",
- "zh_CN": "Geohash 整数解码"
- }
- }
- }, {
- "name": "geohashBoundingBox",
- "example": "geohashBoundingBox(hash )",
- "hint": {
- "en_US": "Area for calculating character codes",
- "zh_CN": "计算字符编码的区域"
- },
- "args": [
- {
- "name": "data",
- "hidden": false,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Data",
- "zh_CN": "输入数据"
- }
- }
- ],
- "return": {
- "type": "struct",
- "hint": {
- "en_US": "Box",
- "zh_CN": "区域"
- }
- },
- "node": {
- "category": "function",
- "icon": "iconPath",
- "label": {
- "en_US": "Geohash Bounding Box",
- "zh_CN": "Geohash 边界框"
- }
- }
- }, {
- "name": "geohashBoundingBoxInt",
- "example": "geohashBoundingBoxInt(hash)",
- "hint": {
- "en_US": "Calculate the area of digital coding",
- "zh_CN": "计算数字编码的区域"
- },
- "args": [
- {
- "name": "data",
- "hidden": false,
- "optional": false,
- "control": "field",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Data",
- "zh_CN": "输入数据"
- }
- }
- ],
- "return": {
- "type": "int",
- "hint": {
- "en_US": "Bounding Box",
- "zh_CN": "区域编码"
- }
- },
- "node": {
- "category": "function",
- "icon": "iconPath",
- "label": {
- "en_US": "Geohash Integer Bounding Box",
- "zh_CN": "Geohash 整数边界框"
- }
- }
- }, {
- "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": false,
- "optional": false,
- "control": "field",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Field",
- "zh_CN": "输入数据"
- }
- },
- {
- "name": "direction",
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input direction",
- "zh_CN": "输入方向"
- },
- "label": {
- "en_US": "Direction",
- "zh_CN": "方向"
- }
- }
- ],
- "return": {
- "type": "string",
- "hint": {
- "en_US": "Neighbor",
- "zh_CN": "相邻位置"
- }
- },
- "node": {
- "category": "function",
- "icon": "iconPath",
- "label": {
- "en_US": "Geohash Neighbor",
- "zh_CN": "Geohash 相邻位置"
- }
- }
- }, {
- "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": false,
- "optional": false,
- "control": "field",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Data",
- "zh_CN": "输入数据"
- }
- },
- {
- "name": "direction",
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input direction",
- "zh_CN": "输入方向"
- },
- "label": {
- "en_US": "Direction",
- "zh_CN": "方向"
- }
- }
- ],
- "return": {
- "type": "string",
- "hint": {
- "en_US": "Neighbor",
- "zh_CN": "相邻位置编码"
- }
- },
- "node": {
- "category": "function",
- "icon": "iconPath",
- "label": {
- "en_US": "Geohash Neighbor Integer",
- "zh_CN": "Geohash 相邻位置编码"
- }
- }
- }, {
- "name": "geohashNeighbors",
- "example": "geohashNeighbors(hash)",
- "hint": {
- "en_US": "Calculate all neighbors of character encoding",
- "zh_CN": "计算字符编码的所有邻居"
- },
- "args": [
- {
- "name": "hash",
- "hidden": false,
- "optional": false,
- "control": "field",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Field",
- "zh_CN": "输入数据"
- }
- }
- ],
- "return": {
- "type": "array",
- "hint": {
- "en_US": "All Neighbor",
- "zh_CN": "所有相邻位置"
- }
- },
- "node": {
- "category": "function",
- "icon": "iconPath",
- "label": {
- "en_US": "Geohash All Neighbors",
- "zh_CN": "Geohash 所有相邻位置"
- }
- }
- }, {
- "name": "geohashNeighborsInt",
- "example": "geohashNeighborsInt(hash)",
- "hint": {
- "en_US": "Calculate all neighbors of digital encoding",
- "zh_CN": "计算数字编码的所有邻居"
- },
- "args": [{
- "name": "hash",
- "hidden": false,
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "Input data",
- "zh_CN": "输入数据"
- },
- "label": {
- "en_US": "Field",
- "zh_CN": "输入数据"
- }
- }
- ],
- "return": {
- "type": "array",
- "hint": {
- "en_US": "All Neighbor",
- "zh_CN": "所有相邻位置编码"
- }
- },
- "node": {
- "category": "function",
- "icon": "iconPath",
- "label": {
- "en_US": "Geohash All Neighbors Integer",
- "zh_CN": "Geohash 所有相邻位置编码"
- }
- }
- }]
- }
|