jackpopp/geodistance
Laravel/PHP package to calculate geographic distances between coordinates. Supports common formulas and helpers to get miles/kilometers between points, useful for proximity search, radius filtering, and location-based features in apps.
Adopt if:
HAVING clauses; performance may degrade with millions of records).Look Elsewhere if:
For Executives: "This package lets us build location-based features (e.g., ‘nearby X’) without heavy engineering lift. It’s like adding GPS filters to search—think Uber for [your product]. Low cost, fast to implement, and scales for our current user base. Avoids vendor lock-in (MIT license) and keeps data in-house for compliance."
For Engineering: *"GeoDistance plugs into Eloquent, so devs can query locations with a single method call:
$nearby = Model::near([lat, lng], radius)->get();
For Design/UX: "This enables features like ‘Show me [X] within Y miles’ without backend delays. Example: A ‘Find Coworking Spaces’ filter could default to a 5-mile radius, improving conversion."
How can I help you explore Laravel packages today?