News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPImpact Blog:
Geo Proximity Search with PHP, Python and SQL
February 09, 2009 @ 10:28:29

On the PHP::Impact blog, Federico takes a look at finding geo-proximity to a find a location on a map and plot it and find the distance to another point - all with the help of PHP, Python and SQL.

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 in navigation, it gives great-circle distances between two points on a sphere from their longitudes and latitudes.

Included in the post is the code for three different implementations - PHP, Python and SQL, all using that same formula.

0 comments voice your opinion now!
geoproximity search python sql haversine radius latitude longitude


blog comments powered by Disqus

Similar Posts

DevShed: Using Yahoo! Web Services with PHP 5

Gonzalo Ayuso: Multiple inheritance with PHP and Traits

PHPClasses.org Blog: Locating addresses on Google Maps embedded in PHP generated Web forms

Community News: Serendipity 1.1.3 and 1.2-beta2 released due to SQL exploit

PHPClasses.org: PHP Zeitgeist: What PHP developers have been looking for in the last decade?


Community Events

Don't see your event here?
Let us know!


community laravel library voicesoftheelephpant laravel5 series php7 extension podcast opinion version wordpress api interview release list unittest language introduction framework

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework