diff --git a/README.md b/README.md index 1aafe94..5b9f498 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file + +### 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(); + } diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..8eaaa0d Binary files /dev/null and b/screenshot.png differ