Popularity
1.0
Stable
Activity
2.8
-
21
1
2

Description

A library which helps you fetch locations easily.

There are two ways in which you can get locations with this library:

using only internal location providers using both google api and internal location providers

Programming language: Java
License: MIT License
Tags: Android     Java     Location     Android-library    
Latest version: v2.1.1

EasyLocationFetch alternatives and similar packages

Based on the "Animations" category.
Alternatively, view EasyLocationFetch alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of EasyLocationFetch or a related project?

Add another 'Animations' Package

README

EasyLocationFetch

Android Arsenal

Setup

Step 1. Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Step 2. Add this to gradle

android {

    ...
    compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
    }
}
dependencies {
        implementation 'com.github.anirudhmpai:EasyLocationFetch:2.1.1'
}

Implementation :

Method 1. this uses googles api alongside internal providers(works better in all scenarios)

GeoLocationModel geoLocationModel = new EasyLocationFetch(context,GoogleApiKey).getLocationData();

Method 2. uses builtin providers

GeoLocationModel geoLocationModel = new EasyLocationFetch(context).getLocationData();

Different data items you can call from above model

geoLocationModel.getAddress()
geoLocationModel.getCity()
geoLocationModel.getLattitude()
geoLocationModel.getLongitude()