工具型号
{
name: "this is a tool",
hospitals: [
"5f45ea0a3e81a01abfe4b370",
"5f45ea0a3e81a01abfe4b371",
]
}
医院模型
{
name: "this is a hospital",
location: [
type: "Point",
coordinates: [130.0, 30.0]
]
}
我所需要做的只是按ID查找工具,然后填充医院,然后按位置对医院进行排序。