APP REVIEW ON ITUNES CONNECT. Invalid file GeoJSON

Hello!!,


I'm about to publish the App Bicycle, and I have everything ready and binary uploaded to iTunes Connect, but what was my surprise when trying to send it for review Apple jumps me the following error:

"To configure this app as an iOS app routing, load a file of coverage app routing on page My apps version of iTunes Connect."

Have an idea of what may be happening ?, because not let me send the App for review Apple ??.

In my Xcode project I have enabled the Maps and checked the box for bikes.

So do not understand that it may be happening ... I have seen that it is possible for a file GeoJSON necessary.

My App is global, because it has 25 countries and 262 cities worldwide.

I reading the guides and error, I created the file requested GeoJSON and I've tried to add to iTunes Connect, but I skip the following error:

"The file of your app coverage routing is invalid."

But I have all the steps followed by the use explaining Apple Guides.

I explain step by step:

1. In my project and have enabled the Maps and selected the option to bikes.


Link screenshot:

http://subefotos.com/ver/?09550a8109e7407d771e976d0e7f0d5co.png


2. I have also verified the Info.plist file to see if the data put into the guides on MKDirectionsApplicationSupportedModes are and I think that if, as in:

  • Maps routing modes supported app'm wearing Bikes
  • And the line also appears MKDirectionsRequest


Link screenshot:

http://subefotos.com/ver/?db0b1510605720c5eabb89fc7f22c2bao.png


3. I have also checked the file and formatted GeoJSON .geojson.

In addition also it has a MultiPolygon element and less than 20 nested polygons, as specified in the guidelines, this would be what comes into my file GeoJSON:

{"Type": "MultiPolygon"

"Coordinates": [

[[[111.5, -44.0], [111.5, -10.6], [154.1, -10.6], [154.1, -44.0], [111.5, -44.0]]],

[[[-73.8, -27.4], [- 73.8,5.0], [- 33.9,5.0], [- 33.9, -27.4], [- 73.8, -27.4]]],

[[[-141.1,43.7], [- 141.1,69.7], [- 52.3,69.7], [- 52.3,43.7], [- 141.1,43.7]]],

[[[-79.1, -3.2], [- 79.1,10.0], [- 67.1,10.0], [- 67.1, -3.2], [- 79.1, -3.2]]],

[[[5.9,47.3] [5.9,54.0] [14.7,54.0] [14.75,47.3] [5.9,47.3]]],

[[[-9.5,35.3], [- 9.5,43.8] [4.4,43.8] [4.4,35.3] [- 9.5,35.3]]],

[[[-19.2,26.6], [- 19.2,30.3], [- 12.8,30.3], [- 12.8,26.6], [- 19.2,26.6]]],

[[[-6.4,42.5], [- 6.4,50.9] [8.9,50.9] [8.95,42.5], [- 6.4,42.5]]],

[[[-11.6,49.8], [- 11.6,59.3] [2.0,59.3] [2.0,49.8] [- 11.6,49.8]]],

[[[7.1,35.6] [7.1,47.0] [18.6,47.0] [18.6,35.6] [7.1,35.6]]],

[[[3.2,31.0] [3.2,60.3] [38.4,60.3] [38.4,31.0] [3.2,31.0]]],

[[[3.6,56.1] [3.6,71.1] [41.6,71.1] [41.6,56.1] [3.6,56.1]]],

[[[-127.2,22.9], [- 127.2,49.4], [- 58.5,49.4], [- 58.5,22.9], [- 127.2,22.9]]],

[[[-120.5,3.8], [- 120.5,34.7], [- 79.6,34.7], [- 79.6,3.8], [- 120.5,3.8]]],

[[[30.5,39.6] [30.5,72.2] [190.8,72.2], [190.8,39.6] [30.5,39.6]]],

[[[119.1,20.9], [119.1,59.1], [165.4,59.1], [165.4,20.9], [119.1,20.9]]],

[[[2.2,49.3] [2.2,51.3] [6.5,51.3] [6.5,49.3] [2.2,49.3]]]

]

}

The file meets think what it says on the guides .. but certainly something must be wrong because as he explained, the problem is that it lets you add this file in iTunes Connect gives me the following problem:

"The file of your app coverage routing is invalid."

I do not understand because it is not valid ... because I have followed all the steps and is formatted .geojson


4. I have also added to Xcode .geojson such as file and specified in the guidelines on the part of product-> Scheme -> Edit Scheme:

After all it's nose to look or see .... because most still gives me the same problem ... It is clear that something in the process or file .geojson I send attached must be wrong ... but I do not know what it is.


Link screenshot:

http://subefotos.com/ver/?e7246278b88b242e185b3fc07a09e290o.png


What else can I do ?, I need something else I have to do ??.


Can I get help to solve my problem ?, I'm desperate because they can not be happening...


Thank you very much.

Hey,


After looking over your GeoJSON file I found a couple of things that could be causing the validation to fail; including missing colons and spaces between the negative symbol prefixing some of the coordinates.


I have attached an amended version below for you.


Let me know if this works or you have any further issues.


- Tom


{ "type": "MultiPolygon",
  "coordinates": [
    [[[111.5, -44.0], [111.5, -10.6], [154.1, -10.6], [154.1, -44.0], [111.5, -44.0]]],
    [[[-73.8, -27.4], [-73.8,5.0], [-33.9,5.0], [-33.9, -27.4], [-73.8, -27.4]]],
    [[[-141.1,43.7], [-141.1,69.7], [-52.3,69.7], [-52.3,43.7], [-141.1,43.7]]],
    [[[-79.1, -3.2], [-79.1,10.0], [-67.1,10.0], [-67.1, -3.2], [-79.1, -3.2]]],
    [[[5.9,47.3], [5.9,54.0], [14.7,54.0], [14.75,47.3], [5.9,47.3]]],
    [[[-9.5,35.3], [-9.5,43.8], [4.4,43.8], [4.4,35.3], [-9.5,35.3]]],
    [[[-19.2,26.6], [-19.2,30.3], [-12.8,30.3], [-12.8,26.6], [-19.2,26.6]]],
    [[[-6.4,42.5], [-6.4,50.9], [8.9,50.9], [8.95,42.5], [-6.4,42.5]]],
    [[[-11.6,49.8], [-11.6,59.3], [2.0,59.3], [2.0,49.8], [-11.6,49.8]]],
    [[[7.1,35.6], [7.1,47.0], [18.6,47.0], [18.6,35.6], [7.1,35.6]]],
    [[[3.2,31.0], [3.2,60.3], [38.4,60.3], [38.4,31.0], [3.2,31.0]]],
    [[[3.6,56.1], [3.6,71.1], [41.6,71.1], [41.6,56.1], [3.6,56.1]]],
    [[[-127.2,22.9], [-127.2,49.4], [-58.5,49.4], [-58.5,22.9], [-127.2,22.9]]],
    [[[-120.5,3.8], [-120.5,34.7], [-79.6,34.7], [-79.6,3.8], [-120.5,3.8]]],
    [[[30.5,39.6], [30.5,72.2], [190.8,72.2], [190.8,39.6], [30.5,39.6]]],
    [[[119.1,20.9], [119.1,59.1], [165.4,59.1], [165.4,20.9], [119.1,20.9]]],
    [[[2.2,49.3], [2.2,51.3], [6.5,51.3], [6.5,49.3], [2.2,49.3]]]
    ]
}

Hi Tom,


Thanks for answering, but just a few hours ago I solved the problem myself.


The problem was in the file GeoJSON had created. Although the file itself is correct, as I have validated:


http://jsonlint.com/


And there is no mistake, as well validates it. To go testing, I decided to take country by country, to see where was the fault and have seen that error was to put the country of Sweden in the GeoJSON file, but still do not know why the error ...


I decided to upload the file without the country of Sweden and upload it with other countries.


The part that gives me error (country Sweden), is in the last position of my GeoJSON:


[[[22.183173,65.723741],[21.213517,65.026005],[21.369631,64.413588],[19.778876,63.609554],[17.847779,62.7494],[17.119555,61.341166],[17.831346,60.636583],[18.787722,60.081914],[17.869225,58.953766],[16.829185,58.719827],[16.44771,57.041118],[15.879786,56.104302],[14.666681,56.200885],[14.100721,55.407781],[12.942911,55.361737],[12.625101,56.30708],[11.787942,57.441817],[11.027369,58.856149],[11.468272,59.432393],[12.300366,60.117933],[12.631147,61.293572],[11.992064,61.800362],[11.930569,63.128318],[12.579935,64.066219],[13.571916,64.049114],[13.919905,64.445421],[13.55569,64.787028],[15.108411,66.193867],[16.108712,67.302456],[16.768879,68.013937],[17.729182,68.010552],[17.993868,68.567391],[19.87856,68.407194],[20.025269,69.065139],[20.645593,69.106247],[21.978535,68.616846],[23.539473,67.936009],[23.56588,66.396051],[23.903379,66.006927],[22.183173,65.723741]],[[17.061767,57.385783],[17.210083,57.326521],[16.430053,56.179196],[16.364135,56.556455],[17.061767,57.385783]],[[19.357910,57.958588],[18.803100,57.651279],[18.825073,57.444949],[18.995361,57.441993],[18.951416,57.370976],[18.693237,57.305756],[18.709716,57.204734],[18.462524,57.127295],[18.319702,56.926992],[18.105468,56.891003],[18.187866,57.109402],[18.072509,57.267163],[18.154907,57.394664],[18.094482,57.545312],[18.660278,57.929434],[19.039306,57.941098],[19.105224,57.993543],[19.374389,57.996454],[19.357910,57.958588]],[[20.846557,63.823710],[21.066284,63.829768],[20.972900,63.715670],[20.824584,63.579121],[20.695495,63.591340],[20.819091,63.714454],[20.799865,63.780059],[20.846557,63.823710]]]


Now my question is if I have not raised the country of Sweden in the GeoJSON file, means my app will not work in Sweden ??, that is not going to be able to establish routes in that country ??.


Finally, what may be the mistake that I did not let up this piece of geosjon (Country Sweden) ??, as the online validator accepts, but not iTunes Connect.


Thank you very much.

Hi Do you know where i could fund the .geojson with all the countries ?

thank you

Hi Victor, How did you solve the problem here: https://forums.developer.apple.com/thread/10385

I'm having the same problem. Can you help please 🙂

this is an old question but anyway, your first coordinate is not the same as the last coordinate, thus not form an polygon

[[[22.183173,65.723741],*****,[20.846557,63.823710]]]
Hi ViOS

I am getting same problem, can you give me some help? is the following necessary to do following?

4. I have also added to Xcode .geojson such as file and
specified in the guidelines on the part of product-> Scheme ->
Edit Scheme:

the scheme itself does not go to the binary, right?

Regards
Marc
APP REVIEW ON ITUNES CONNECT. Invalid file GeoJSON
 
 
Q