On Oct 9, 3:03 pm, Marconi <[email protected]> wrote:
> this code works fine
>
> var directionsService = new google.maps.DirectionsService();
> directionsDisplay = new google.maps.DirectionsRenderer();
> directionsDisplay.setMap(map);
>
>     var start = "Milan";
>     var end = "Rome";
>
>     var request = {
>         origin:start,
>         destination:end,
>         travelMode: google.maps.DirectionsTravelMode.WALKING
>     };
>     directionsService.route(request, function(response, status) {
>       if (status == google.maps.DirectionsStatus.OK) {
>         directionsDisplay.setDirections(response);
>       }
>     });
>
> why if I use:
> var start= new google.maps.LatLng(10,10)
> it wont?

Probably because there are no roads that go anywhere near there.

http://www.geocodezip.com/example_geo2.asp?addr1=(10,10)&geocode=1

  -- Larry

>
> thx

-- 
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