Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Geographical Laravel Package

malhal/laravel-geographical

Laravel package that adds geographic query scopes to Eloquent models. Store latitude and longitude, then calculate Haversine distances, filter records within a radius, and order results by proximity using clean, chainable Eloquent methods.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature prioritization: Enables a fast “near me,” radius search, store locator, delivery/service-area check, or distance-sorted marketplace MVP without building custom geospatial math from scratch.
  • Build vs. buy: Treat malhal/laravel-geographical as a tactical convenience layer for simple latitude/longitude storage and distance calculations in Laravel/Eloquent models, not as a full geospatial platform. Use it to avoid low-value custom code while still budgeting for geocoding, map UI, data quality, and indexing.
  • Roadmap acceleration: If records already have or can easily get coordinates, this can pull location-aware features forward by weeks and reduce initial engineering scope.
  • Use cases to evaluate: Store/partner locators, “available near you,” delivery-radius eligibility, local event or listing discovery, field-service dispatch sorting, and distance-based ranking in search results.
  • Packaging/pricing inputs: Supports location-based product tiers or filters, such as “local availability,” “nearest provider,” or “within X miles,” where the underlying requirement is simple point-to-point distance.
  • Strategic signal: With 282 stars and a modest opportunity score, this is best framed as a low-cost utility, not a differentiated moat. The product advantage comes from the location experience and data quality, not from the package itself.

When to Consider This Package

  • Consider it when the product is a Laravel application using Eloquent models, the geometry need is simple latitude/longitude plus distance calculation or sorting, and the team wants a lightweight MIT-licensed shortcut.
  • Adopt for small-to-medium query volume and straightforward radius/filter use cases where coordinate accuracy and basic distance ranking are sufficient.
  • Consider it when you can pair it with a separate geocoding provider and map UI, and when the team can validate schema, indexes, and query performance in the target database.
  • Look elsewhere when requirements include complex polygons, geofencing, route optimization, real-time tracking, large-scale spatial indexing, advanced analytics, or strict SLA support. For those, evaluate PostGIS, managed geospatial services, or a more specialized search/geo stack.
  • Be cautious with high-traffic proximity queries, multi-database support, or compliance-critical location logic. The package’s small community footprint means engineering should review maintenance status, test coverage, and query plans before committing.

How to Pitch It (Stakeholders)

  • To executives: “This is a low-cost, MIT-licensed Laravel package that can help us ship location-aware features—like ‘near me’ search or delivery-radius checks—much faster. It is a tactical accelerator, not a strategic platform, so we should use it for simple distance needs and avoid overinvesting before validating demand.”
  • To engineering: “It gives us latitude/longitude columns and distance helpers on Eloquent models, reducing custom geo math for simple radius and sorting use cases. We should still own geocoding, indexing, database compatibility, and performance testing; it does not replace PostGIS or a full geospatial stack.”
  • To product/design: “Use it to prototype and launch simple proximity experiences quickly, but define radius accuracy, data freshness, and performance expectations up front. Validate with real coordinate data before expanding into complex geofencing or routing.”
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource