Archive for January, 2016

Creating geojson file for the app with maps before publishing it on AppStore

I recently published iOS app developed with Xamarin where maps API were used. Using maps API in iOS requires to create .geojson file to show the area which should be covered with routing for your app before publishing this app in AppStore.

Creating this kind of file is quite easy, it was just a square around Minsk city in my case but it was not obvious how to create this file when you never did it before.

The file should look like this:

{
 "type": "MultiPolygon",
 "coordinates": [[[
 [27.32574462890625,53.78036940194483],
 [27.32574462890625,54.00373331851741],
 [27.821502685546875,54.00373331851741],
 [27.821502685546875,53.78036940194483],
 [27.32574462890625,53.78036940194483]
 ]]]
}

I used the website http://geojson.io to create the initial file and the website http://geojsonlint.com to test it with the changes to be appropriate with the sample above (there was an issue with quantity of brackets with the file, geojsonlint helped me to find this error)

 

, , , , , , ,

Leave a comment