2

アプリにルーティングアプリカバレッジファイルを追加したいのですが、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

私の間違いは何ですか?

ありがとう!

4

1 に答える 1

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/でテストしてください

于 2012-11-15T19:13:36.257 に答える