PHPackages                             jackpopp/geodistance - 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. [Search &amp; Filtering](/categories/search)
4. /
5. jackpopp/geodistance

ActiveLibrary[Search &amp; Filtering](/categories/search)

jackpopp/geodistance
====================

Search for locations within a radius using latitude and longitude values with your eloquent models.

1.2.3(10y ago)125120.4k↑20%15[2 issues](https://github.com/jackpopp/geodistance/issues)[2 PRs](https://github.com/jackpopp/geodistance/pulls)13MITPHP

Since May 1Pushed 9y ago4 watchersCompare

[ Source](https://github.com/jackpopp/geodistance)[ Packagist](https://packagist.org/packages/jackpopp/geodistance)[ RSS](/packages/jackpopp-geodistance/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (13)Used By (13)

GeoDistance
===========

[](#geodistance)

GeoDistance allows you to search for locations within a radius using latitude and longitude values with your eloquent models.

\###Setup

Add geodistance to your composer file.

```
"jackpopp/geodistance": "dev-master"

```

Add the geodistance trait to your eloquent model and lat/lng columns to your table.

```
