WHERE clauses (e.g., SELECT * FROM users WHERE GEO_DISTANCE(lat, lng, :targetLat, :targetLng) < 10) without client-side calculations.GEO_DISTANCE for stored coordinates but call an API for address-to-coordinate conversion).For Executives: "This package lets us build location-based features—like ‘Find nearby stores’ or ‘Delivery radius’—without relying on expensive third-party APIs. It works entirely within our database, so it’s fast, reliable, and doesn’t add per-request costs. For example, we could offer a ‘Premium’ feature where users expand their search radius, all while keeping data private and performance high. It’s a low-risk way to add geospatial capabilities quickly."
For Engineers: *"CraueGeoBundle adds two Doctrine DQL functions to Symfony:
GEO_DISTANCE(lat1, lng1, lat2, lng2): Calculate distance between two coordinates in a single SQL query (no PHP loops or client-side math).GEO_DISTANCE_BY_POSTAL_CODE(country, code1, code2): Distance between postal codes (requires one-time data import).For Data Teams: "This could reduce API costs and latency for location-based queries. For example, instead of fetching all users and calculating distances in PHP, we’d filter results at the database level. We’d need to ensure our user/postal code data includes latitude/longitude or postal codes, but the tradeoff is worth it for scalability."
How can I help you explore Laravel packages today?