简体   繁体   中英

How to extract and use*.osm.bz2 file for Android?

I have downloaded the file philippines.osm.bz2 from a site. Now I don't know what to do next with this file. I mean what are the software that I should need to use this file? My plan is to display a Map of the philippines from OSM file like philippines.osm.bz2 and display it on an Android project offline.

Are there any libraries that I can use to be able to combine .osm map files and merge it to Android. Please help me.

.osm files are way too large for using them directly on a Smartphone/Tablet.

For a quick start I suggest you to use MapDroyd which has a built in download functionality for regions world wide. The downloaded data has been derived from .osm files but they are optimized and reduced for mobile usage.

A different approach is the MapsForge vector file format which is supported by some Apps like Locus .

Unfortunately ready-to-use maps are at the moment only available for Europe: ftp://ftp.mapsforge.org/maps/

For building your own app I would definitely take a closer look onto the MapsForge project. In includes a renderer that draws a map based on the vector information stored in the .map files. AFAIR those files can be created by converting .osm/.pbf files on a regular PC.

OSM files are OpenStreetMap files. There are various Android projects that can read OSM files. This one seems to be the most developed one: http://code.google.com/p/osmdroid/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM