Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanthosh91 committed Apr 24, 2019
2 parents 7f61779 + cf530c8 commit a721a53
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,34 @@
# Google-Map-Floating-Info-Window-Uber

An Android application to draw polyline with floating info window using route_key encoded string.
An Android application to draw polyline on google maps with floating info window using route_key encoded string.

![Screenshot](screenshot.png)

@Override
public void onMapReady(GoogleMap googleMap) {
Youtube Link https://youtu.be/ld8XkVr78x8

# How to

### Step 1. Add the JitPack repository to your build file

PolyUtils polyUtils = new PolyUtils(this, googleMap, "{punAgqyhNIgAWAeE[iBKLh@VdA\\z@t@rALr@SrDdC@BHj@lDPvB?t@Ax@DRBf@Df@f@lFdHcBp@QnDy@jBi@bCiA|E_CrDaBhAu@BIWQ_BmCQF_C~@");
polyUtils.setSourceAddress(new MyAddress("Prestige palladium bayan", "4 mins"));
polyUtils.setDestinationAddress(new MyAddress("Anna nagar west", null));
polyUtils.start();
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}

### Step 2. Add the dependency
implementation 'com.github.gsanthosh91:Google-Map-Floating-Info-Window-Uber:version'
[jitpack.io](https://jitpack.io/#gsanthosh91/Google-Map-Floating-Info-Window-Uber/)

}

Youtube Link https://youtu.be/ld8XkVr78x8

### Code

@Override
public void onMapReady(GoogleMap googleMap) {
DecodeRoute decodeRoute = new DecodeRoute(this, googleMap, "{punAgqyhNIgAWAeE[iBKLh@VdA\\z@t@rALr@SrDdC@BHj@lDPvB?t@Ax@DRBf@Df@f@lFdHcBp@QnDy@jBi@bCiA|E_CrDaBhAu@BIWQ_BmCQF_C~@");
decodeRoute.setSourceAddress(new DecodeAddress("Prestige palladium bayan", "4 mins"));
decodeRoute.setDestinationAddress(new DecodeAddress("Anna nagar west", null));
decodeRoute.start();
}
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a721a53

Please sign in to comment.