为itunes创建geojson文件

时间:2012-10-11 14:59:43

标签: ios6 geojson

我想在我的应用程序中添加路由应用程序覆盖文件,我创建了一个geojson文件:

{"type":
"MultiPolygon","coordinates":[
    [-1.897287,39.035986],
    [-1.862268,39.022384],
    [-1.841154,39.000643],
    [-1.831369,38.980829],
    [-1.862869,38.967084],
    [-1.887503,38.976226],
    [-1.899261,39.007379]
]
}

但我收到了一个错误:

JSON file you uploaded was invalid. Errors : Each set of coordinates provided must be valid : [Ljava.lang.Object;@7de9b790

我的错误是什么?

谢谢!

1 个答案:

答案 0 :(得分:6)

在此处更正了一个:

{ "type": "MultiPolygon", 
  "coordinates": [ 
           [[ [-1.897287,39.035986],
    [-1.862268,39.022384],
    [-1.841154,39.000643],
    [-1.831369,38.980829],
    [-1.862869,38.967084],
    [-1.887503,38.976226],
    [-1.899261,39.007379]
    ] ]]
} 

http://geojsonlint.com/

上测试