-4

I have a dict object in python:

'polygon': {'coordinates': [[['51.89600366973369,5.604579537426986'], ['51.88589816283178,5.598937488274174'], ['51.882074887477046,5.620585782912315'], ['51.891197214447004,5.622057621577596']]]}

I want to replace the ' from the coordinates with nothing so:

'51.89600366973369,5.604579537426986' becomes 51.89600366973369,5.604579537426986

How can I achieve that in python? To be honest, I don't now where to start.

1 Answers1

0

Yes now it's indeed an array with a string with geographic coordinates, but elasticsearch want the according the geojson format (https://www.rfc-editor.org/rfc/rfc7946) which is not a string. The python function needs tranform the data and then stream it to elasticsearch.

Community
  • 1
  • 1