}
public static String generateLinestring(String encoded) {
EncodedPolylineBean ecb = new EncodedPolylineBean(encoded, null, 0);
List<Coordinate> coords = PolylineEncoder.decode(ecb);
List<String> points = new ArrayList<String>();
for(Coordinate coord : coords) {
points.add(new Double(coord.y).toString() + " " + new Double(coord.x).toString());