Skip to main content

Decoding the “outer” response body parameter value from the HERE Isoline Routing API I get a list of tupels with xy coordinates in this form:

>(y1, x1), (y2, x2), ...].

How can I convert this into a polygon? I have tried different approaches including PythonCaller scripts but cannot get the correct result.

Alternative approach would be using the GeometryReplacer transformer which also supports the Encoded Polyline but also with previous crs setting to epsg: 4326, the LineCloser and AreaBuilder transformers the polygon geometry has a wrong location, without any recognised epsg in a Desktop GIS and the polygon geometry is also incorrect.

Thank you!

Already got a solution. In the python script I forgot to switch the xy coordinates (the API provides y coordinate at first). The geometry replacer wtih WKTString gets the rest job.


Reply