Select to view content in your preferred language

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

716
1
04-22-2014 04:05 PM
TakeoShibata
Emerging Contributor
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_exec...

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
                            ]
                        ]
                    ]
Tags (2)
0 Kudos
1 Reply
MattEiben
Deactivated User
Do you have access to ArcMap 10.2?  If so, there's actually a built in tool under Conversion Tools -> JSON called "JSON to Features".

I've never used it before, but the description says its designed to be used with the ArcGIS REST API, which sounds exactly like what you're looking for.

Matt
0 Kudos