0

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?

Ehsan
  • 400
  • 5
  • 15

1 Answers1

1

GraphHopper is just a routing engine (no geocoding, no visualization) and therefore has no explicit functionality for (reverse) geocoding.

Karussell
  • 17,085
  • 16
  • 97
  • 197