kmlaravel/laravel-geographical-calculator
A Laravel/PHP package for geographical calculations, offering distance and radius queries between coordinates using Haversine and related formulas. Easily find nearby records, compute distances in multiple units, and add location-aware features to your Eloquent models with a simple, fluent API.
For executives: v2.2.0 adds two capabilities we can productize — "is this point inside our area?" and "which point is farthest from this one?" Together they unlock service-area eligibility and coverage analysis without new vendor spend or a GIS program. It is an incremental, low-risk addition to an existing dependency, with no breaking changes signaled, so we can pilot one feature and measure before expanding.
For engineering: two well-defined primitives with narrow scope — point containment in a given area, and farthest-point selection from a set relative to a custom point. Both fit existing data models and avoid external service calls. The work is in edge cases, not integration: boundary points, complex or multiple polygons, coordinate-system and distance-metric assumptions, and performance at our row counts. Recommend a short spike covering those cases before we commit to a customer-facing guarantee.
How can I help you explore Laravel packages today?