使用python在Firestore中运行GeoPoint

问题描述 投票:1回答:1

我正在尝试使用Python在我的Firebase Firestore中保存GeoPoint,但我没有任何成功。这给了我语法错误:

location=new firebase.firestore.GeoPoint(latitude, longitude)

这有什么解决方案吗?也许我错过了要导入的东西,但我找不到什么。提前致谢。

python python-3.x firebase google-cloud-firestore
1个回答
1
投票

你只需要没有新的location=firebase.firestore.GeoPoint(latitude, longitude)

© www.soinside.com 2019 - 2024. All rights reserved.