Skip to content

Instantly share code, notes, and snippets.

View molebogenggiven's full-sized avatar

molebogenggiven

View GitHub Profile
//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) {