| Forum | GitHub | Maps | Blog

Where to get map data for GraphHopper


I would like to know where to get the map data necessary to use GraphHopper. I started to integrate mapsforge into my android app, I openstreetmap extract the map data (*.osm.pbf) and just use it, soon I realize I would need to trace route and navigation functionalities, so I moved to GH to achieve that.

Following the android sample as a recipe I notice GH uses gets the needed data from many different files, including *.map file, those files are located at area_city-gh/ directory.

How or Where I get the map data like this:

shell@surnia_cdma:/sdcard/Download/graphhopper/maps/north-america_us_new-york-gh $ ls -la
-rw-rw---- root     sdcard_r 31457380 2018-01-06 00:24 edges
-rw-rw---- root     sdcard_r 26214500 2018-01-06 00:25 geometry
-rw-rw---- root     sdcard_r  6291556 2018-01-06 00:25 location_index
-rw-rw---- root     sdcard_r  4194404 2018-01-06 00:25 names
-rw-rw---- root     sdcard_r  9437284 2018-01-06 00:25 nodes
-rw-rw---- root     sdcard_r  6291556 2018-01-06 00:25 nodes_ch_fastest_car
-rw-rw---- root     sdcard_r 99315950 2018-01-06 00:26
-rw-rw---- root     sdcard_r    32868 2018-01-06 00:26 properties
-rw-rw---- root     sdcard_r 25165924 2018-01-06 00:26 shortcuts_fastest_car

I pretend to to have the map pre-loaded into the app, when the user loads for first time the app extract the map data to my desired location inside the device.

I’m looking for Panama map. I already used osmosis to convert panama.osm.pbf to *.map file.


GraphHopper Android sample includes two kinds of data in the aforementioned folders:

  • Mapsforge offline vector map, can be created as you did. Map file is used only for map rendering in VTM map library.

  • GraphHopper offline graph files, can be created with following the guide, to be used for routing.

Alternatively can create GraphHopper graphs with desktop Cruiser app (menu Routing > Create graph).


Thanks for pointing that out. It was my mistake, i jumped over that part in the documentation, but I already fixed as you suggested. I used the script to create the other resources.


I’m not sure whether the conversion tools are ok or what, but my maps are rendered without sea, It’s just an aesthetic aspect.


To create properly Mapsforge maps can see the map creation guide.
For questions regarding Mapsforge or VTM please use their forum.