AnsweredAssumed Answered

How do you turn an encoded polyline into geometry?

Question asked by joel.meier on Jul 29, 2019
Latest reply on Jul 30, 2019 by BLomas

For example I have this feed: https://511on.ca/api/v2/get/roadconditions?format=jsona

 

In a normal script I would use the polyline library to decode it. e.g.

 

array = arcpy.Array()
for coords in polyline.decode(EncodedPolyline):
    array.add(arcpy.Point(coords[1], coords[0]))
cur.insertRow([LocationDescription,arcpy.Polyline(array)])

 

Is something similar possible in GeoEvent?

Outcomes