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.
php artisan vendor:publish so coordinate/unit defaults are explicit.Point, construct or load an Area, then ask spatial questions.”Point, then perform the area check in a dedicated service or action class. Return a domain result such as Serviceable/OutOfArea rather than a raw boolean so controllers and jobs stay readable.null, or returns a sentinel. Wrap the call in your own application-level check so an empty result does not become an unhandled exception in a report or job.ST_Distance results without normalizing units.How can I help you explore Laravel packages today?