Humm..
Those points are already snapped because I picked them from some
streets.
My purpose is to receive GPS coordinates from a moving car and to snap
them. Those come a little off-street and need snapping.
Now, about your second part, I'm not following.
You're saying I should do something like:
var dirn = new GDirections(map);
dirn.load(function(){
//function here
});
Once inside, instead
dirn.loadFromWaypoints([points[i],points[i]],{getPolyline:true});
is just
dirn.loadFromWaypoints(points,{getPolyline:true});
?
It might not be near that, but I'm really confused now...
If you could please give me some guiding code, I would appreciate a
LOT! =)
Thanks!
On Oct 6, 6:10 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Oct 6, 9:25 am, Mini0n <[EMAIL PROTECTED]> wrote:
>
> > On Oct 6, 4:42 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > wrote:
>
> > > > I'm doing this locally, so there's no link to a website. =/
>
> > > Good luck...
>
> > Thanks! Somehow you reminded me of awardspace... ^_^
>
> > There:http://gmapstest.awardspace.com/
>
> Looks like those points are already "snapped" to the nearest road.
> If you write the code inside the GDirections "load" event handler, you
> shouldn't have any problem with the asynchronous nature of the call.
> You can do them all in a single call to loadFromWaypoints, just pass
> the array of points in and then to retrieve them use
> GDirections.getGeocode(i).Point.coordinates (returns array lng, lat,
> alt).
> -- Larry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---