This file contains hidden or 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
//Calling decodePoly | |
String polyline = (String)((JSONObject)((JSONObject)jSteps.get(k)).get("polyline")).get("points"); | |
List<LatLng> list = decodePoly(polyline); | |
/* | |
where "polyline" & "points" are JSON key return from GoogleMap URl. | |
*/ | |
// deocdePoly implementation | |
private List<LatLng> decodePoly(String encoded) { |