takeofuture

How do I create Line feature from arcgisonline rest (JSON format) output

Discussion created by takeofuture on Apr 22, 2014
Latest reply on Apr 23, 2014 by eibenm
I am trying to generate the route feature.
I looked the some example from
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Route_service_with_asynchronous_execution/02r300000275000000/

So basically get the all points pf paths and make the straight line in order?

So decode JSON by python and make XY Event layer in order the connect between those?
Thank you!

===
Sample Response from above URL

"geometry": {
                    "paths": [
                        [
                            [
                                145.06591391900008,
                                -37.86473982999996
                            ],
                            [
                                145.0671000000001,
                                -37.86528999999996
                            ],
                           
                            ...
                            ... additional points
                            ...
 
                            [
                                145.10584000000006,
                                -37.818539999999985
                            ],
                            [
                                145.10498172400003,
                                -37.81844463599998
                            ]
                        ]
                    ]

Outcomes