⚡ ElasticsearchBook.com is crafted by Jozef Sorocin and powered by:
Geographical objects and shapes are supported in ES through these field types:
geo_shape
documents using the spatial relations
INTERSECTS
, DISJOINT
, WITHIN
, or CONTAINS
x, y
cartesian shapes
Only available within X-Pack — a closed-source collection of features that's part of an official Elasticsearch Subscription.<aside> ⚠️ The third dimension (z-value) in any of the above field types is also accepted but only the latitude and longitude values will be indexed — the third dimension is ignored!
</aside>
People often ask how many coordinate decimal places they should store.
Let's clarify that by borrowing from this GIS Stack Exchange thread and this answer by whuber:
I'm not going to get into the accuracy part and will rather focus on precision — here's a summary of what each digit in a decimal degree signifies:
North (+90)
|
|
(-180) West ---+--- East (+180)
|
|
South (-90)