我正在尝试使用Python在我的Firebase Firestore中保存GeoPoint,但我没有任何成功。这给了我语法错误:
location=new firebase.firestore.GeoPoint(latitude, longitude)
这有什么解决方案吗?也许我错过了要导入的东西,但我找不到什么。提前致谢。
你只需要没有新的location=firebase.firestore.GeoPoint(latitude, longitude)。
location=firebase.firestore.GeoPoint(latitude, longitude)