On Sep 4, 4:36 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Is there a way to return only the Distance and Duration between to
> Points to the browser - could be in xml.
>
> My problem is that I need to add those parameters into a database. So
> I need either an xml page returned, or the data returned to the source
> of the page so I can then scrape the source to get those to data
> elements.

Use GDirections. 
http://code.google.com/apis/maps/documentation/reference.html#GDirections

gdir.getDistance().meters returns the distance.
gdir.getDuration().seconds returns the duration.

Having done that, use GDownloadUrl to pass the values to a server
script. See this thread: 
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/8b0cbb769656e5d6

Never ever suggest scraping data. Doing so is always against the Terms
of Use.

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