导入地理点在解析 [英] Import Geopoints in Parse

查看:142
本文介绍了导入地理点在解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Parse并尝试上传一个包含GeoPoints的csv文件,但当我尝试上传它们时,我看到的唯一选项是将其标记为字符串,数字或布尔值。

I am using Parse and trying to upload a csv file which contains GeoPoints, but when I try to upload them the only options I see is to label it as a string, number, or boolean. Is it possible to import Geopoints or files?

推荐答案

以下是使用JSON导入的方法:

Here's how to do it using JSON import:

{ "results": [
  {
    "name":"Kfar Saba",
    "location": {"__type": "GeoPoint", "latitude": 32.18406, "longitude": 34.91731}
  },
  {
    "name":"Ar'ara BaNegev",
    "location": {"__type": "GeoPoint", "latitude": 32.5, "longitude": 35.1}
  }
}]

这篇关于导入地理点在解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆