Thanks for reply.

Can you please suggest any site or any sample code using asp.net to
get the distance using json?


On Jun 14, 10:47 am, Davide Cremonesi <[email protected]> wrote:
> Hi,
> formulating the request in the correct way:
>
> http://maps.google.com/maps/api/directions/json?sensor=false&origin=C...
>
> 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.- Hide quoted text -
>
> - Show quoted text -

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

Reply via email to