Skip to content

Commit

Permalink
update constructor parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhat1707 authored Apr 11, 2021
1 parent ceac102 commit 899ec89
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This library contains all utils related to google location. like, getting lat or

[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-EasyWayLocation-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/6880)

## What's New in Ver 2.0
## What's New in Ver 2.2

- Route Draw
a. simple.
Expand All @@ -13,6 +13,8 @@ This library contains all utils related to google location. like, getting lat or

- Draw route between origin and destination through waypoints.

- Support to android 30.

- The callback of the complete route draws with time and distance between waypoints and destinations.

# Images:
Expand All @@ -37,7 +39,7 @@ all projects {
## Step 1:- Add the dependency:
````
dependencies {
implementation 'com.github.prabhat1707:EasyWayLocation:2.0'
implementation 'com.github.prabhat1707:EasyWayLocation:2.2'
}
````
Expand Down Expand Up @@ -71,7 +73,7 @@ public class MainActivity extends AppCompatActivity implements Listener {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//--
easyWayLocation = new EasyWayLocation(this, false,this);
easyWayLocation = new EasyWayLocation(this, false,false,this);
}
@Override
Expand Down Expand Up @@ -149,15 +151,15 @@ public class MainActivity extends AppCompatActivity implements Listener {
````
Context context = this;
boolean requireFineGranularity = false;
new EasyWayLocation(this, requireLastLocation = false,listner = this);
new EasyWayLocation(this, requireLastLocation = false,isDebuggable = true/false,listner = this);
or
request = new LocationRequest();
request.setInterval(10000);
request.setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY);
new EasyWayLocation(this,locationRequest = request , requireLastLocation = false,listner = this);
new EasyWayLocation(this,locationRequest = request , requireLastLocation = false,isDebuggable = true/false,listner = this);
````
Expand Down

0 comments on commit 899ec89

Please sign in to comment.