Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have made a Google Version 3 Geocoder , I want to be able to pick up the coordinates of the route when it is dragged. I know how to pick up the coordinates giving the start and end points, but, after change the route, I don't know how to do!

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

I did this, and it works!

var directionsDisplay = new google.maps.DirectionsRenderer(rendererOptions);
...
google.maps.event.addListener(directionsDisplay, 'directions_changed',         
    function() {
                your code here
    }
);
share|improve this answer
    
Please accept your own answer - this is how GIS-Se works. Thanks –  Mapperz Feb 21 '13 at 14:38
    
I only can accept my own answer in 2 days! :( –  Luciano Borges Feb 21 '13 at 17:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.