Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot upload the GeoJSON file in new iTunes Connect

I am trying to upload a Routing App Coverage File in the NEW iTunes Connect. The file name is example.geojson. I get the following error:

Invalid file extension: Your routing app coverage file must use the .geojson extension

I tried in Chrome and Safari even changed the name to example.GeoJSON.

I validated the contents of the file in http://geojsonlint.com/

Any ideas?

like image 460
Sanandrea Avatar asked Sep 05 '14 21:09

Sanandrea


People also ask

What can open a GeoJSON file?

GeoJSON Map Viewer is a tool that views the GeoJSON file in your browser. This app allows you to validate your GeoJSON and display it on a Google map. This app also provides the ability to convert KML, KMZ, GPX, WKT, WKB, TWKB, EWKB, EWKT, TCX, OSM, ZIP(shapefile,dbf,shp), XML(GeoRSS) file to GeoJSON format.

How do I save a GeoJSON file?

Export the GeoJSON fileUnder the "Export" heading, click: "Save GeoJSON". (Optional) If the map has unsaved changes, you will see a pop-up displaying this message: "You have unsaved data that will not be in the GeoJSON File". Click: "Save Now" to save the changes.


3 Answers

When uploading a .geojson I found that you newlines may cause it to not be saved on iTunes Connect but still be validated on geojsonlint.

For example:

FAILS:

{ "type": "MultiPolygon", 
  "coordinates": [ 
    [[[14.094369,36.060248],
    [14.138314, 35.869068],
    [14.428181,35.746154],
    [14.744622,35.782218],
    [14.648492,36.028047],
    [14.181083, 36.192884],
    [14.094369,36.060248]
    ]]]
} 

SUCCEEDS:

{ "type": "MultiPolygon", 
  "coordinates": [ 
    [[[14.094369,36.060248], [14.138314, 35.869068], [14.428181,35.746154], [14.744622,35.782218], [14.648492,36.028047], [14.181083, 36.192884], [14.094369,36.060248]]]
    ]
}
like image 106
Kevin Farrugia Avatar answered Oct 15 '22 09:10

Kevin Farrugia


Actually I solved this by taking the default geojson file provided by Apple at: Providing directions (Listing 7-2)

and then i took the coordinates from github project:

Countries

It worked by saving the file as example.GeoJSON

like image 3
Sanandrea Avatar answered Oct 15 '22 09:10

Sanandrea


I have the same error message about .geojson extension. I opened it in BBEdit, delete leading spaces and tab and reformat it with JSBeautifier. After that I can upload it to iTunes Connect. The problem was not related to .geojson extension but to the content of the file (probably a mix of space and tab)

like image 1
Pierre Marty Avatar answered Oct 15 '22 09:10

Pierre Marty