wikibusiness/gisgraphy-bundle

Gisgraphy - Geocode webservice wrapper.

0.1 2015-06-25 19:31 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:23:11 UTC


README

This is a simple Symfony wrapper for parsing address data from gisgraphy.

Installation

Install is done via composer:

$ composer require wikibusiness/gisgraphy-bundle

Usage

$address     = '1600 Amphitheatre Parkway Mountain View CA';
$countryCode = 'us';

$gis        = new Gisgraphy($address, $countryCode);
$gisAddress = $gis->decode();

var_dump($gisAddress);
var_dump($gisAddress->toArray());
var_dump($gisAddress->getKeys());
var_dump($gisAddress->getZipcode());