I am drawing a route between two points in a map. I receive the points this way:
StringBuilder urlString = new StringBuilder();
urlString.append("htt
For those who need this now, there's an open-source library with a lot of useful stuff regarding the Google Maps Android API, including decoding and encoding of polylines.
Check it out at Android Maps Utils and Android Maps Util Github. For decoding and encoding use:
PolyUtil.decode(String encodedPath);
PolyUtil.encode(List path);