I'm using Graphopper in Android in order to use map and geocoding offline. Currently I'm getting the current street name with this code:
QueryResult rua = hopper.getLocationIndex().findClosest(currentLatitude, currentLongitude, EdgeFilter.ALL_EDGES);
String streetName = rua.getClosestEdge().getName();
I found this code after a long search in internet. Is there any documentation for different functions in Graphopper?
I need the same thing for getting the name of current city too. Is there any function for that?