dev-master
9999999-devPostcode lookup wrapper
MIT
The Requires
by Harry Messenger
Wallogit.com
2017 © Pedro Peláez
Postcode lookup wrapper
A Laravel 5.X package providing simple wrappers over three postcode geocoding services, (*1)
Here are a few short examples of what you can do:, (*2)
$results = Geocoder::geocode($request->postcode,'googlemaps'); $latitude = $results['lat']; $longitude = $results['lng'];
TBC, (*3)
Find yourself stuck using the package? Found a bug? Got a suggestion of additional providers to add Feel free to create an issue on GitHub, we'll try to address it as soon as possible., (*4)
If you've found a bug regarding security please mail support@image-plus.co.uk., (*5)
You can install this package via composer using this command:, (*6)
composer require imageplus/geocoder
You will need to register the service provider the usual way., (*7)
'providers' => [
/*
* Package Service Providers...
*/
Imageplus\Geocoder\GeocoderServiceProvider::class,
],
Autodiscovery TBC, (*8)
You can publish required configuration files using, (*9)
php artisan vendor:publish
Please then add API keys for the providers you wish to use to your .env file. They should be stored in the following format by default:, (*10)
IMAGEGEO_PREFER=postcodeio OPENCAGE_API_KEY= GOOGLE_MAPS_API_KEY=
TBC, (*11)
Image+ are a web and mobile app development agency based in Coventry, United Kingdom., (*12)
The MIT License (MIT). Please see License File for more information., (*13)
Postcode lookup wrapper
MIT