How to query geo data from Elastic Maps Service


I found Elastic recently introduced a new brilliant feature called Elastic Maps Service, and I have tried to create Maps with it by adding Vector Layers. I wonder can I query the GeoJSON data of each of the Vector Layers? My problem is:
I have a time series of car locations in an Elastic index (and continuously ingesting new data), and I want to know which county/region defined in the GeoJSON data the car is located at each time step. What could be the most efficient way to do this?

1 Like

Hi @Zhifei. I think this blog post that describes geo enrichment will be useful for you.

You can download GeoJSON files from Elastic Maps Service from Then you can add those boundaries to your Elasticsearch cluster using the GeoJSON Upload tool in Elastic Maps.

Then follow the steps in the blog post to set up Geo Enrichment of your car locations.

Note The boundaries offered by Elastic Maps Service are approximate and likely only useful at small scales. If your cars travel near borders, you may end up with some false positives.

Let us know if you have further questions.

1 Like

Thanks @nickpeihl, really helpful!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.