Skip to content
Nutiteq edited this page May 15, 2014 · 12 revisions

graphhopper is creating open source Java routing library which can run also on Android device. It uses Mapsforge .map files, and creates own graphs on top of it.

AdvancedMap sample has GraphhopperRouteActivity.java which enables to open a graphhopper graph file package and calculates route between two clicks on map. It shows route as Line, and puts Markers to start, end and turn points. To detect clicks there is special MapListener RouteMapEventListener.java.

Sample data for Ontario, Canada: canada-ontario-gh3.zip (207 MB). AdvancedMap3D sample app requires data files to be uncompressed, so you would need two extra steps after downloading a ghz or zip file:

  1. rename ghz to zip (if it was not zip alread), and unzip it
  2. put all unzipped files (.map, edges, nodes etc) to a folder called <filename>-gh. For example europe_great-britain-gh must have europe_great-britain.map and all the other files

Please contact [email protected] about availability of routable map data packages with OpenStreetMap or commercial map data.

graphhopper route with Nutiteq SDK

Clone this wiki locally