I’m using the android demo with offline routing from https://github.com/graphhopper/graphhopper/blob/master/android/README.md
On line 450 , inside the resp object I can only see a list of lat/lng pairs which are fed into the map, no human readable instructions per se. How do I find or generate those ?
See Java API documentation for how to get all the details:
# Routing via Java API
To use the following examples you need to specify the dependency in
your [Maven config](/README.md#maven) correctly.
To do routing in your Java code you'll need just a few lines of code:
```java
// create one GraphHopper instance
GraphHopper hopper = new GraphHopperOSM().forServer();
hopper.setDataReaderFile(osmFile);
// where to store graphhopper files?
hopper.setGraphHopperLocation(graphFolder);
hopper.setEncodingManager(EncodingManager.create("car"));
// now this can take minutes if it imports or a few seconds for loading
// of course this is dependent on the area you import
hopper.importOrLoad();
// simple configuration of the request object, see the GraphHopperServlet classs for more possibilities.
This file has been truncated. show original
1 Like
devemux86:
/README.md#maven
Does this apply to graphhopper for mobile ?
Im getting encoded values do not match when I change the encoding manager and set ch enabled to false.