I am trying to download a kml file from Wikimapia containing information on quaters (districts), the very same information that is nicely available on Wikimapia. What I want to get at the end of the day is a shapefile containing as many polygons as there are districts in Milan to use in my GIS.

This is my URL for the query I pasted in my web browser.


From this I get a tiny kml.part file, that I then rename .kml. The file doesn't open in Google Earth or QGIS. If I open it with a text editor I can just few lines of xml, but no information concerning my geometries...

Am I doing something logically wrong?

  • I cant see any solution for exporting the shapefiles from Wikimapia. Can you be more specific
    – user10863
    Oct 10, 2012 at 11:27

3 Answers 3


The solution is to use category=5339 (instead of category=quarters) in your URL.


This list of Wikimapia categories definitely helped out (thanks @LarsVegas).

Searching for the word 'quarters' in the list of categories did the trick.

I also added count=1000 just in case there are more than 50 quarters (the number of features returned defaults to 50 if you don't specify a count, see http://wikimapia.org/api/)


By a look at the wiki for API box I think you need to change your code either to (replace key and the coordinates with your own of course):




There is also an example of how your result file is suppose to look like. Something I'm not sure about is the category. Maybe you should check the complete list so you can use an ID or try it without using this parameter to see if you get a valid result then.

  • Doesn't look any different than the URL in the question.
    – Rayner
    Oct 5, 2012 at 11:08
  • Posted the 2nd example twice. Edited my answer.
    – LarsVegas
    Oct 5, 2012 at 11:12
  • Francesco's URL is fine. I tried to get it to show those quarters in Google Earth and it just doesn't want to do it.
    – Rayner
    Oct 5, 2012 at 11:25
  • What happens if you leave the category parameter be?
    – LarsVegas
    Oct 5, 2012 at 11:27
  • 1
    One interesting thing though is 2827 (quarters) isn't on that category list. The API is in beta . . . I suppose that may have something to do with it.
    – Rayner
    Oct 5, 2012 at 11:35

Perhaps the Global Administrative Boundaries of the world would be of use also. This is a shapefile of most political districts of the world.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.