问题
Using Elasticsearch, say I have documents of GeoJSON polygons. I'm using the percolator (ala How to know if a geo coordinate lies within a geo polygon in elasticsearch?) to find if a point lies within a polygon. That works great!
Is there any way in Elasticsearch to determine
- If a point lies outside of all polygons
- What the closest polygon that to that point?
- Return that polygon
来源:https://stackoverflow.com/questions/41558123/find-closest-geojson-polygon-to-point-when-point-lies-outside-of-all-polygons-in