[英]How to write geopoint data in firebase firestore in Flutter?
There's a GeoPoint
type provided by the Flutter Firebase library. Flutter Firebase 库提供了一个GeoPoint
类型。 You just do this:你只需这样做:
final result = await FirebaseFirestore.instance
.collection('waypoints')
.add({
'startPoint': GeoPoint(5.373982, 2.705164)
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.