views:

151

answers:

1

Hi,

I'm trying to get a collection of points (latitude,longitude) between 2 adresses. The points needs to be on a valid tracfic route. I currently use Gdirections to create a route between 2 adresses. Is there a method to get somepoints allong this route? To me it seems impossible...

thx in advance!

A: 

You can get the returned polyline using GDirections.getPolyline() Then you can use GPolyline.getVertex(index:Number) to retrieve the vertex points along that route.

Ossama