alexpechkarev / google-geocoder Goto Github PK
View Code? Open in Web Editor NEWGoogle Geocoder API v3 for Laravel
License: MIT License
Google Geocoder API v3 for Laravel
License: MIT License
Trying to test this package, I guess I am missing a step. I created the config file under the config directory based on the provided instructions. Somehow Laravel 5 is complaining about the config file.
Unresolvable dependency resolving [Parameter #0 [ $config ]] in class Alexpechkarev\GoogleGeocoder\GoogleGeocoder
Here is the controller function I have.
use Alexpechkarev\GoogleGeocoder\GoogleGeocoder; ----- public function DisplayAddress(GoogleGeocoder $request) { $value = $request->geocode('json', array("latlng"=>"40.714224,-73.961452")); return $value; }
Any idea?
Thanks.
Please describe where to put the source files in the laravel project directory.
Here is the error.
FatalErrorException in D:\Documents\Localhost\htdocs\finderkerala-fw\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php line 150:
Class 'Alexpechkarev\GoogleGeocoder\GoogleGeocoderServiceProvider' not found
You should replace deprecated share method with singleton in GoogleGeocoderServiceProvider.
$this->app['GoogleGeocoder'] = $this->app->share(function($app)
to
$this->app->singleton('GoogleGeocoder', function($app)
Can we load KMZ files here.
Hi Alex,
could you please add the possibility to use a proxy for the requests?
So adding a "proxy" to the config file would add it to the curlopt-Array.
Thanks :)
use Alexpechkarev\GoogleGeocoder\GoogleGeocoderServiceProvider;
$param = array("address"=>$request->input('address').' '.$request->input('city').' '.$request->input('state'));
$response = \Geocoder::geocode('json', $param);
return $response;
I get the error..
FatalErrorException in ProfileController.php line 49:
Class 'Geocoder' not found
How do I reference this class? Thanks
This package requires PHP cURL to be installed in order for it to work, but it is not mentioned anywhere in the documentation or composer.json*. Also, there is a slight error in the documentation. The line:
$reponse = Geocoder::geocode('json', $param);
Should be:
$reponse = \Geocoder::geocode('json', $param);
*https://github.com/alexpechkarev/google-geocoder/blob/master/composer.json
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.