创建 GeoPoint 时 lat 必须是数字

lat must be a number when creating a GeoPoint

我正在使用环回 3.x。创建 GeoPoint 时出现错误 lat must be a number,同时创建用于查找附近医生的自定义 API。

user.json 文件

"findNearByDoctors": {
  "accepts": [
    {
      "arg": "geoPoint",
      "type": "geopoint",
      "required": true,
      "description": "user's location"
    },
    {
      "arg": "range",
      "type": "number",
      "required": false,
      "description": "range"
    }
  ],
  "returns": [],
  "description": "find nearby doctors",
  "http": [
    {
      "path": "/get-nearby-doctors",
      "verb": "get"
    }
  ]
}

我给出的输入是

geoPoint: (1.28210155945393, 103.81722480263163)

geoPoint:{“lat”:1.28210155945393,lng“:103.81722480263163}