只要有longitude和latitude默认创建GeoPoint对象?
1. 字段属性:locations ARRAY类型
2. 待写入的数据:
"locations": [
[
{
"longitude": 116.3657,
"latitude": 39.9133
},
{
"longitude": 116.3656,
"latitude": 39.91328
}
]
]
save以后locations里面:
"locations": [
[
{
"__type": "GeoPoint",
"longitude": 116.3657,
"latitude": 39.9133
},
{
"__type": "GeoPoint",
"longitude": 116.3656,
"latitude": 39.91328
}
]
]
为什么默认成了GeoPoint呢? longitude和latitude 改个名就没这个问题了。
-
创建时间
15年9月11日
-
最后回复
15年9月11日
-
2
回复
-
822
浏览
-
2
用户