After the XML query Google and get points, try to trace the route between them, but what worked before, now with updating the API. The route is generated not agree more, because he draws straight lines between points, not taking into consideration the streets on the map.
The code I use to draw: public void draw(Canvas canvas, MapView mapView, boolean shadow) { super.draw(canvas, mapView, shadow); Projection proj = mapView.getProjection(); Point ponto1, ponto2; Path caminho = new Path(); for (int i = 0; i < geoPoints.size() - 1; i++) { ponto1 = proj.toPixels(geoPoints.get(i), null); ponto2 = proj.toPixels(geoPoints.get(i + 1), null); caminho.moveTo(ponto2.x, ponto2.y); caminho.lineTo(ponto1.x,ponto1.y); canvas.drawPath(caminho, paint); } } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en