geocoder-php/yandex-provider
Yandex provider for the Geocoder PHP library. Adds Yandex Geocoder and reverse geocoding support, returning normalized address and coordinate data via the standard Geocoder interfaces. Suitable for Laravel or standalone PHP projects.
yandex-provider package is a Geocoding API wrapper for Yandex Maps, enabling reverse geocoding (coordinates → address) and forward geocoding (address → coordinates). It fits well in systems requiring location-based services, such as:
Geocoder facade or manual instantiation). Works seamlessly with Laravel’s queue systems (e.g., async geocoding jobs) and caching layers (e.g., Redis for rate-limiting).geocoder-php ecosystem, which supports multi-provider fallback (e.g., Yandex + Google Maps). Useful for high-availability or region-specific geocoding (Yandex dominates in CIS/Europe).Geocoder interface, ensuring backward compatibility with other providers (e.g., Google, OpenStreetMap). Minimal refactoring needed if already using geocoder-php/core..env) and custom endpoints (e.g., Yandex’s regional APIs).| Risk | Mitigation Strategy |
|---|---|
| API Deprecation | Monitor Yandex’s API changes; use feature flags to toggle providers dynamically. |
| Rate Limiting | Implement exponential backoff and caching (e.g., 5-minute TTL for static addresses). |
| Cost Overruns | Set budget alerts (Yandex charges per request) and use batch processing for bulk geocoding. |
| Region-Specific Errors | Fallback to secondary providers (e.g., OpenStreetMap) for unsupported regions. |
| Dependency Bloat | Audit geocoder-php/core for unused features (e.g., disable unused adapters). |
YandexProvider).Geocoder::geocode() or Geocoder::reverse() for consistency.Http client for retry logic and middleware.geocode:address job) for async processing./api/geocode) using the provider.geocoder-php/yandex-provider.cURL or Guzzle (included by default in Laravel).latitude, longitude).geocoder-php/core, zero changes needed—just add the Yandex provider.Cache::remember).Spatie Circuit Breaker).geocoder-php/yandex-provider for breaking changes (MIT license allows forks if needed).GuzzleRetryMiddleware).dd($geocoder->getProvider('yandex')->getLastResponse()) for raw API responses.supervisor for Laravel Forge).How can I help you explore Laravel packages today?