Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/371.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
javascript中是否有一个GeoFirestore near函数提供了一个fieldname参数,就像函数中的Flatter GeoFirestore一样?_Javascript_Google Cloud Firestore_Google Cloud Functions_Geofirestore - Fatal编程技术网

javascript中是否有一个GeoFirestore near函数提供了一个fieldname参数,就像函数中的Flatter GeoFirestore一样?

javascript中是否有一个GeoFirestore near函数提供了一个fieldname参数,就像函数中的Flatter GeoFirestore一样?,javascript,google-cloud-firestore,google-cloud-functions,geofirestore,Javascript,Google Cloud Firestore,Google Cloud Functions,Geofirestore,我正在创建一个云函数,让用户GeoFirestore从Firestore数据库查询用户文档。 在颤振中,功能内有一个Geofirestore,具有三个参数: geo.collection(collectionRef: collectionReference).within(center: center, radius: radius, field: fieldName); 在JavaScript中,有一个near函数只有两个参数: geo.near({ center: center, radi

我正在创建一个云函数,让用户GeoFirestore从Firestore数据库查询用户文档。 在颤振中,功能内有一个Geofirestore,具有三个参数:

geo.collection(collectionRef: collectionReference).within(center: center, radius: radius, field: fieldName);
在JavaScript中,有一个near函数只有两个参数:

geo.near({ center: center, radius: radius});

我在firestore中的文档结构如下:

因此,我需要将fieldname传递给javascript函数,以便查询能够正常运行。不幸的是,我在JavaScript中找不到提供所需功能的函数。有人能帮我吗

非常感谢您的帮助! 多谢各位