# Geo Proximity Search: The Haversine Equation

DevFeed: [Geo Proximity Search: The Haversine Equation](<https://devfeed.tech/articles/geo-proximity-search-the-haversine-equation-20732.md>)

Original publisher: [Read original article](<https://blog.fedecarg.com/2014/12/08/geo-proximity-search-the-haversine-equation/>)

Author: Federico

Published: 2014-12-08T11:48:00Z

Content type: tutorial

Language: en

Sources: [Federico Cargnelutti](<https://devfeed.tech/sources/federico-cargnelutti.md>)

Topics: [SQL](<https://devfeed.tech/topics/sql.md>), [PHP](<https://devfeed.tech/topics/php.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [databases](<https://devfeed.tech/tags/databases.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [map](<https://devfeed.tech/tags/map.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [php](<https://devfeed.tech/tags/php.md>), [plotting](<https://devfeed.tech/tags/plotting.md>), [points](<https://devfeed.tech/tags/points.md>), [programming](<https://devfeed.tech/tags/programming.md>), [python](<https://devfeed.tech/tags/python.md>), [sql](<https://devfeed.tech/tags/sql.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

## AI overview

This tutorial explains how to perform geo-proximity searches by plotting a radius around a map point using latitude and longitude. It introduces the Haversine equation for calculating great-circle distances and provides implementations in SQL, Python, and PHP.

## Source excerpt

I'm working on a project that requires Geo proximity search. Basically, what I'm doing is plotting a radius around a point on a map, which is defined by the distance between two points on the map given their latitudes and longitudes. To achieve this I'm using the Haversine formula (spherical trigonometry). This equation is important [...]