PHPackages                             anthonymartin/geo-location - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. anthonymartin/geo-location

ActiveClass[Utility &amp; Helpers](/categories/utility)

anthonymartin/geo-location
==========================

Powerful GeoCoding library: Retrieve bounding box coordinates, distances between geopoints, point in polygon, get longitude and latitude from addresses and more with GeoLocation for PHP

v2.0.1(6y ago)196949.5k—4.7%654MITPHPPHP &gt;=5.4.0CI failing

Since Oct 25Pushed 4y ago12 watchersCompare

[ Source](https://github.com/anthonymartin/GeoLocation.php)[ Packagist](https://packagist.org/packages/anthonymartin/geo-location)[ Docs](https://github.com/anthonymartin/GeoLocation-PHP)[ RSS](/packages/anthonymartin-geo-location/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (9)Used By (4)

GeoLocation for PHP
===================

[](#geolocation-for-php)

GeoLocation for PHP offers convenient and easy to use methods for geocoding, geolocation and geometry functions in PHP.

Features include:

1. Retrieve bounding box coordinates. Just define a coordinate and the size of your bounding box.
2. calculate distances between geopoints/coordinates
3. Solve point in polygon problems (identify whether a given point is within the bounds of a polygon)

Examples
========

[](#examples)

Get distance between two points:
--------------------------------

[](#get-distance-between-two-points)

```
