Geocoder Nominatim adapter
5.1.1 2019-08-14 07:26 UTC
composer require thomasbandit/locationiq-nominatim-provider:dev-master
Why not use the LocationIQ Geocode Provider?
- The Nominatim Geocode Provider enables use of the
getTypefunctions whereas the LocationIQ Geocode Provider doesn't. I went an extra step further and also provided the
nameDetailsproperties; both can be separately disabled..
Differences to the LocationIQ Geocode Provider
- This calls the LocationIQ requesting a JSON response than XML.
nameDetailsproperties have been added to the Address model.
- There are two extra arguments in the Laravel config, both are
'providers' => [ LocationIqNominatim::class => [ env('LOCATION_IQ_API_KEY'), true, // Include extraDetails true, // Include nameDetails ], ],