laravel-nominatim-search maintained by stevenbraham
Description
Very basic Laravel component for quickly geocoding an address using Nominatim with caching
Author
Last update
2026/10/21 18:06
(dev-main)
License
Downloads
82
Laravel Nominatim Search
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);