-
Notifications
You must be signed in to change notification settings - Fork 6
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/gsanthosh91/Google-Map-Fl…
- Loading branch information
Showing
2 changed files
with
27 additions
and
9 deletions.
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,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(); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.