PHPackages                             toneflix-code/php-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. toneflix-code/php-geo-location

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

toneflix-code/php-geo-location
==============================

Powerful GeoCoding library forked from anthonymartin/geo-location and actively maintained: Retrieve bounding box coordinates, distances between geopoints, point in polygon, get longitude and latitude from addresses and more with GeoLocation for PHP

1.0.5(1y ago)0657MITPHPPHP ^8.0|^8.1|8.2|8.3

Since Dec 29Pushed 1y agoCompare

[ Source](https://github.com/toneflix/php-geo-location)[ Packagist](https://packagist.org/packages/toneflix-code/php-geo-location)[ Docs](https://github.com/toneflix-code/php-geo-location)[ RSS](/packages/toneflix-code-php-geo-location/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

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

[](#geolocation-for-php)

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

This library is forked from [anthonymartin/GeoLocation](https://github.com/anthonymartin/GeoLocation) and is actively maintained

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)

### Installation

[](#installation)

```
composer require toneflix-code/php-geo-location
```

Examples
========

[](#examples)

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

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

```
