我应该如何使用geofirestore查询离子仓库附近的位置的Cloud Firestore

时间:2019-05-09 10:24:40

标签: javascript ionic-framework google-cloud-firestore geofirestore

const firestore = firebase.firestore();
const geofirestore: GeoFirestore = new GeoFirestore(firestore);
const geocollection: GeoCollectionReference = geofirestore.collection('locations');
const query: GeoQuery = geocollection.near({ center: new firebase.firestore.GeoPoint(18.493788, 73.811595), radius: 5 });

我正在尝试在Ionic 4中使用Geofirestore获取当前位置附近的位置,但无法查询Cloud Firestore返回位置

0 个答案:

没有答案