Hi,
formulating the request in the correct way:
http://maps.google.com/maps/api/directions/json?sensor=false&origin=Calle+6+J9%2C+CAGUAS%2C+PR%2C+00726&destination=10422+Woodlands+Trail%2C+Rowlett%2C+TX%2C+75089
returns this json structure which is more clear:
{
"status": "ZERO_RESULTS",
"routes": [ ]
}
If you are calling it from a program, than maybe xml format will be
easier to parse.
<DirectionsResponse>
<status>ZERO_RESULTS</status>
</DirectionsResponse>
Hope it helps,
Davide
On Jun 14, 4:23 pm, Andrew Leach <[email protected]> wrote:
> On 14 June 2010 15:01, Disha <[email protected]> wrote:
>
> > I am using sample code from
> >http://blog.sb2.fr/post/2008/11/23/Get-Address-A-to-B-Distance-using-....
>
> > I am testing following address
>
> > AddressA = "Calle 6 J9, CAGUAS, PR, 00726"
> > AddressB = "10422 Woodlands Trail, Rowlett, TX, 75089"
>
> > It is not returning anything, How do I handle this?
>
> It's using an undocumented call to /nav: the Directions webservice
> doesn't do that -- see
> herehttp://code.google.com/apis/maps/documentation/directions/#Directions...
>
> Using /nav is against the Terms of Service.
>
> The webservice returns a status code which will tell you that it can't
> find a route between Puerto Rico and
> Texas:http://code.google.com/apis/maps/documentation/javascript/v2/referenc...
> and any code should check that before trying to use data (like the
> distance) which isn't there.
--
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.