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?
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.
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.
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]]]
]
}
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
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With