-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/AravindVijay7/GeoLocator-…
- Loading branch information
Showing
1 changed file
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,36 @@ | ||
# GeoLocator-Android | ||
# GeoLocator-Android | ||
Using GeoLocator-Android you could easily get you GPS based location from Android Devices | ||
|
||
|
||
|
||
|
||
# Gradle / Maven dependency | ||
At the moment we do not have a publishing mechanism to a maven repository so the easiest way to add the library to your app is via a JitPack Dependency | ||
|
||
# Add this to you project.gradle | ||
|
||
allprojects { | ||
repositories { | ||
... | ||
maven { url 'https://jitpack.io' } | ||
} | ||
} | ||
|
||
# Add this to your App.gradle | ||
|
||
dependencies { | ||
implementation 'com.github.AravindVijay7:GeoLocator-Android:Tag' | ||
} | ||
|
||
|
||
# Usage | ||
|
||
|
||
Initaialize GeoLocator: | ||
|
||
GeoLocator geoLocator = new GeoLocator(getApplicationContext(),MainActivity.this); | ||
|
||
get latitiude and lontitude by: | ||
|
||
geoLocator.getLattitude() | ||
geoLocator.getLongitude() |