Skip to content

firetrap/verso

Repository files navigation

Verso - Offline Reverse Geocode

minSdkVersion 15
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.
Verso is a singleton and use a internal data text file where all the geo info is located.

How do I add Verso to my project?

dependencies {
		compile 'com.github.firetrap:verso:1.0.1'
	}

How do I use Verso?

[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();

About

Verso - Offline Reverse Geocode

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages