Verso is a offline reverse geocode library based in OfflineReverseGeocode and optimized to be used on Android.
Verso is capable to return the "city name", "country name" and the "country code" from a latitude and longitude provided.
dependencies {
compile 'com.github.firetrap:verso:1.0.1'
}
[MyApplication.java]
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
Verso.getInstance().setup(this);
}
}
Get geoInfo
GeoInfo geoInfo = Verso.getInstance().getGeoInfo(latitude,longitude);
String countryName = geoInfo.getCountryName();
String cityName = geoInfo.getCityName();