O'Reilly logo

Elasticsearch in Action by Matthew Lee Hinman, Roy Russo, Radu Gheorghe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Working with geospatial data

Geospatial data makes your search application location-aware. For example, to search for events that are close to you, to find restaurants in a certain area, or to see which park’s area intersects with the area of the city center, you’d work with geospatial data.

We’ll call events and restaurants in this context points because they’re essentially points on the map. We’ll put areas, such as a country or a rectangle that you draw on a map, under the generic umbrella of shapes. Geospatial search works with points, shapes, and various relations between them:

  • Distance between a point and another point— If where you are is a point and swimming pools are other points, you can search for the closest swimming ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required