Is this possible? What I'd like to do is to create a GDirections
object from a code generated JSON object, that has the same structure
as the JSON returned from the directions "load" call to the server.

The JSON has a structure like this (edited for post):

{
        "name":"...",
        "Status":{
                "code":200,
                "request":"directions"
        },
        "Placemark":[
        {
                "id":"",
                "address":"...",
                "AddressDetails":{"Thoroughfare":
{"ThoroughfareName":"..."},"Accuracy": 0},
                "Point":{
                        "coordinates":[...,...,0]
                }
        },
        {
                "id":"",
                "address":"...",
                "AddressDetails":{"Thoroughfare":
{"ThoroughfareName":"..."},"Accuracy": 0},
                "Point":{
                        "coordinates":[...,...,0]
                }
        }
        ],
        "Directions":{
                "copyrightsHtml":"....",
                "summaryHtml":"...",
                "Distance":{
                        "meters":...,
                        "html":"..."
                },
                "Duration":{
                        "seconds":...,
                        "html":"..."
                },
                "Routes":[
                {
                        "Distance":{
                                "meters":...,
                                "html":"..."
                        },
                        "Duration":{
                                "seconds":...,
                                "html":"..."
                        },
                        "summaryHtml":"...",
                        "Steps":[
                        {
                                "descriptionHtml":"...",
                                "Distance":{
                                        "meters":...,
                                        "html":"..."
                                },
                                "Duration":{
                                        "seconds":...,
                                        "html":"..."
                                },
                                "Point":{
                                        "coordinates":[...,...,0]
                                },
                                "polylineIndex":0
                        },

...
...
...
etc.

Thank you for your help.

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