PHP code example of puwnz / google-maps-serializer-bundle
1. Go to this page and download the library: Download puwnz/google-maps-serializer-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
puwnz / google-maps-serializer-bundle example snippets
// config/bundles.php
return [
Puwnz\GoogleMapsSerializerBundle\GoogleMapsSerializerBundle::class => ['all' => true]
];
namespace App\Controller;
use Puwnz\GoogleMapsBundle\Service\GeocodeService;
use Symfony\Component\HttpFoundation\JsonResponse;
class FooController extends AbstractController {
public function getGeocodeResult(string $address, GeocodeService $geocodeService) : JsonResponse
{
return $this->json($geocodeService->call($address));
}
}