Hi,
I have map with vehicles, some times i have an error with position data and i want to check if some of vehicle is not driving on water, if yes get an alert. How can i do it ?
Hi,
I have map with vehicles, some times i have an error with position data and i want to check if some of vehicle is not driving on water, if yes get an alert. How can i do it ?
That is a very interesting case. This should be possible with a geo_shape query.
Here's how I would do this.
Need i map my vehicle position to geo_shape ? I have maped it to geo_point and if it is not necessery i don't want to change it.
Yes, but only if you want to use a pre-indexed shape for the query. the geo_polygon query, which works with geo_points, does not yet support pre-indexed shapes. There is a feature request for this here. https://github.com/elastic/elasticsearch/issues/46730
I think it may be possible to use the geo_polygon query with your geo_points if you pass a static polygon in the query. But your query may be very large if you have a polygon with many coordinates.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.