Re: [android-developers] Route Google Maps

2012-09-02 Thread Jayme Vara
Thank you and sorry for posting in the wrong place


Em sexta-feira, 31 de agosto de 2012 15h32min48s UTC-3, TreKing escreveu:
>
> On Fri, Aug 31, 2012 at 9:48 AM, Jayme Vara 
> > wrote:
>
>> Before the change of API, the path was perfect in the streets, but now 
>> appears like the image I posted
>
>
> If you're question is regarding the Google Directions API, then you will 
> have to ask your question on a group or forum related to that API. This has 
> nothing to do with Android.
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>
>

-- 
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

Re: [android-developers] Route Google Maps

2012-08-31 Thread TreKing
On Fri, Aug 31, 2012 at 9:48 AM, Jayme Vara  wrote:

> Before the change of API, the path was perfect in the streets, but now
> appears like the image I posted


If you're question is regarding the Google Directions API, then you will
have to ask your question on a group or forum related to that API. This has
nothing to do with Android.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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

Re: [android-developers] Route Google Maps

2012-08-31 Thread Jayme Vara
Sorry again

*What "api"? *

API of Google Maps

*Routes of what? *

Routes between two points, like a GPS

*Who's "he"? What "points"? *
*
*
He = Application, Points that Google generate between two geographic 
localization

I go to try explain again.

I have an application that gets the current position and the user selects a 
destination, these two starting locations, it queries Google:
https://developers.google.com/maps/documentation/directions/ 

And get an xml with the places where I "turn" to reach the destination

After I read the xml, and trace a path between first and second point of 
the xml, and so on

Before the change of API, the path was perfect in the streets, but now 
appears like the image I posted

Sorry but my English is not good

-- 
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

Re: [android-developers] Route Google Maps

2012-08-30 Thread TreKing
On Thu, Aug 30, 2012 at 7:16 PM, Jayme Vara  wrote:

> After Google changed the api,


What "api"?


> I just can not generate more routes properly,


Routes of what?


> he does it with points, and not consider the streets


Who's "he"? What "points"?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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

Re: [android-developers] Route Google Maps

2012-08-30 Thread Jayme Vara

>
> Sorry, check this image to see if it helps.


 
After Google changed the api, I just can not generate more routes properly, 
he does it with points, and not consider the streets

-- 
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

Re: [android-developers] Route Google Maps

2012-08-28 Thread TreKing
On Sun, Aug 26, 2012 at 11:52 AM, Jayme Vara  wrote:

> 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.


That is incomprehensible.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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

[android-developers] Route Google Maps

2012-08-27 Thread Jayme Vara
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