GoogleGeolocationBundle
GoogleGeolocationBundle copied to clipboard
Adding extra parameters for the service
I need to add others parameters to the geocoding service, as explained in the documentation, like "region", "language", etc. https://developers.google.com/maps/documentation/geocoding/?hl=en#Geocoding
The code actually does not provide a method for this, as shows in the code: https://github.com/dsyph3r/GoogleGeolocationBundle/blob/master/Geolocation/GeolocationApi.php#L254
I realize that the only choice i have to achieve this would be to override the "%google_geolocation.geolocation_api.class%" parameter, create my own class and extend the "Google\GeolocationBundle\Geolocation\GeolocationApi".
There is another elegant way of doing this?
Thanks!
Hey, you could always code the feature and submit a PR :)
Any hint of how to implement?
@dsyph3r Could you please check this commit? https://github.com/byhoratiss/GoogleGeolocationBundle/commit/47e96c32620a71c27fe79347e053d2b10d9e756a