Add Location Based Searching to Your PHP App With Elasticsearch

By Derek Binkley

Searching based on a user’s location is a feature of many websites and applications. This type of search adds relevancy and value to a website, especially when these results include the distance from a point or within a polygon, and are combined with fast text searches. In this article, we’ll take an in-depth look at how Elasticsearch supports searching based upon latitude and longitude. We’ll look at the different types of location searches and how to integrate these searches into a PHP-based backend API.

This article was originally published in the July 2019 issue of php[architect] magazine. To read the complete article please subscribe or purchase the complete issue.

Related Articles

Leave a comment

Use the form below to leave a comment: