stevenbraham / laravel-nominatim-search
Very basic Laravel component for quickly geocoding an address using Nominatim with caching
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/stevenbraham/laravel-nominatim-search
Requires
- php: ^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.0.1
- laravel/framework: ^8.0|^9.0|^10.0|^11.0|^12.0
README
This a very basic Laravel component for quickly geocoding an address using OpenStreet Map Nominatim with caching
Usage
After installing the package, you can use the NominatimSearch facade to geocode an address. This is automatically added by the service provider.
use StevenBraham\NominatimSearch\Facades\NominatimSearch; $address = '1600 Amphitheatre Parkway, Mountain View, CA'; // $location is an array with values 'lat' and 'lon' or null if the address could not be found $location = NominatimSearch::encodeAddress($address);