Google Maps API V3 DirectionsService not exact end point

i´m having a problem with the DirectionsService.

I want to show a route to some place that doesn´t have map, so, i made some piece of the route “by hand” (javascript markers and polygons). The problem presents when i request the route from one direction to the intersection of a route (point with latitude and longitude), the route show by the DirectionsService doesn´t end exactly in the point indicated. To visualize this i prepare a fiddle:
Personalized route

  • How to add a play and stop button for each track?
  • How to restrict AJAX API from unwanted use (e.g. someone performing a SELECT *)
  • AngularJS $resource calls the wrong API URL when using method:POST
  • Why marker position object changed latitude and longitude property names
  • How to get a count for each type of an index in elasticsearch?
  • setting js azure app service custom login authentication
  • The expected end point is {-30.745418, -59.580419} (the intersection between the two roads), but Google traces the route much to the north. Trying different coordinate, the trace moves away to the south or east, but never in the point i want.

    If i move the marker “B” to the coordinates with the mouse, the route traces correctly, but i cannot make it automatic. Can´t figure out how make the route to the exact point o “drag” the marker by javascript. Hope someone knows the answer.

    I Hope my explanation was understandable.

    Edit: Google fix this problem in new version of Google Maps API

  • JSON API intended for JavaScript use - handle session data server side, or in browser?
  • Google maps JS API referer URL
  • Using extra callback parameters to Array.prototype.some
  • Using Javascript/jQuery to modify CSS based on Text Value
  • How to get a google map to use 100% of its parent container?
  • How do I update entire checklists using Trello API and Javascript?