I have a search system in which i need to score by location. User sends his coordinates, I check whether they intersect with pre-indexed polygons. The problem is I don't know how to pass coordinates to json file. I use python library called elasticsearch.
Here is sample of how I pass search data to search template
And this is how I'm trying to use it in search template file
But the problem is it gets parsed as a string, but I need an array of floats.