0

I have a project that has a requirement of displaying map data in offline mode also. I have used OpenStreet maps. I have downloaded .PBF file for my area . I want to access these map file from android application. I also visit these links: How to create map tiles from OpenStreetMap offline, display it on Android? PBF Format I am a newbie in Android developing so excuse me about my elementary question. Can anybody guide me how I use .PBF file and solve this problem?

Community
  • 1
  • 1
A.Morshedian
  • 31
  • 1
  • 9

1 Answers1

0

Use a library that supports offline OSM maps, for example mapsforge or the Mapbox Android SDK. For more information consult the OSM wiki about offline OSM and Android libraries.

scai
  • 20,297
  • 4
  • 56
  • 72
  • could you please show me a simple code that access simple open street map? – A.Morshedian Nov 25 '16 at 11:22
  • That depends on the library you want to use. So far your use-case is very unspecific, i.e. whether you also need features like geocoding and routing. Also, these libraries usually have better code examples than I can offer. – scai Nov 25 '16 at 11:53
  • it's not open sourced (Mapbox) – user924 Dec 12 '18 at 09:59