Search code examples
iosxcodecoordinatesitunesgeojson

Unable to upload GeoJSON file to iTunes Connect


I'm getting the following error:

"The JSON file you uploaded was invalid. Errors : Each set of coordinates provided must be valid"

The Contents of the file are:

{ "type" : "MultiPolygon",
    "coordinates": [
                    [[[19.5,-99.1], [19.5,-99.2], [19.3,-99.2], [19.2,-99.1], [19.2,-98.9], [19.3,-98.9], [19.5,-99.0]]]
                    ]
}

I really can't find whats wrong, it works perfectly on the Simulator.

Any ideas ?


Solution

  • I copied swaped the order of the coordinates, as in the Apple Docs. And made the start and ending coordinates equal.