Mostly example I search and found are make distance from string address.
But in my country their have few address landmarks and my project want
marker in any position.
So I need to get distance from LatLng rather than string address.

I want to know walking distance from 2 point.
I demo by use 2 LatLng like this code

===============

    directionsDisplay.setMap(map);
    directionsDisplay.setPanel(document.getElementById("directionsPanel"));
    var start = new google.maps.LatLng(7.0122195553352,100.476407609787);
    var end = new google.maps.LatLng(7.01291523575093,100.476685276127);
    var request = {
        origin:start,
        destination:end,
        travelMode: google.maps.DirectionsTravelMode.WALKING,
        unitSystem: google.maps.DirectionsUnitSystem.METRIC
    };
    directionsService.route(request, function(response, status) {
      if (status == google.maps.DirectionsStatus.OK) {
        directionsDisplay.setDirections(response);
      }
    });

===============


I test to show marker at my start LatLng and my end LatLng too.
Result is show like this image links :
http://img683.imageshack.us/img683/5056/62344886.jpg

Red block is start point.
Blue block is end point.

Why directionsDisplay A and B didn't show same position as my markers ?
I think maybe because my LatLng can't solve to geo address.
But if I want to know distance from any positions (like real google map can)
How can I do ?

Sorry if this already asked question, I try to search but didn't find exact
thing to solve.

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to