tmwk / gmaps_geolocation
Gmaps Geolocation
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Type:symfony-bundle
pkg:composer/tmwk/gmaps_geolocation
Requires
- php: >=5.3.9
This package is auto-updated.
Last update: 2025-10-05 04:06:15 UTC
README
Requerimientos
- [Symfony 2.8+]
Instalación
composer require tmwk/gmaps_geolocation
Modifica el archivo app/AppKernel.php para registrar el nuevo Bundle
$bundles = array(
// ...
new Tmwk\GMapsBundle\TmwkGMapsBundle(),
// ...
);
Agrega a tu archivo app/config/config.yml lo siguiente:
tmwk_g_maps:
api_key: "%gmaps_api_key%"
Agrega a tu archivo app/config/parameters.yml lo siguiente:
gmaps_api_key: 'code'
Uso
Ejemplo
Obtenemos la latitud y longitud de la direcció
$lat = $this->get('gmap.lat_long');
$result = $lat->address('Direccion', 'Comuna', 'Ciudad');
dump($result->getLatitud());