[GIS] Create custom OSM map file

androidopenstreetmap

I develop an Android app that uses Mapsforge to display OSM maps. I could use a pre-built map in the MapsForge file format but that makes my APK file to big and I only need a small part of my country anyway.

How can I only get a small rectangle part of the world of OSM and put it in a map file?

Best Answer

A ready-to-go solution can be the web service of http://extract.bbbike.org/, there you can define a boundingbox on an online map and choose many different output formats for OSM based maps. They also have mapsforge format there.

Have not tried on my own so far, so I cannot give any information about size limit for downloads, like a whole continent or similar