Skip to content

softpal/LocationUtils

Repository files navigation

LocationUtils

Developed by

Softpal

Features

This Library is used to Get the Current Location of the User

Installation

Add repository url and dependency in application module gradle file:

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

Gradle

dependencies {
    implementation 'com.github.softpal:LocationUtils:1.0'
}

Usage

1. Get Current Location

        // Call the method by passing date in required format
       Location location = LocationUtils.getMyLocation(MainActivity.this);
       
       location.getLatitude();
       location.getLongitude();

About

Location Utils are used to get the current location, latitude and longitude of mobile user

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages