PHP code example of wikibusiness / gisgraphy-bundle
1. Go to this page and download the library: Download wikibusiness/gisgraphy-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/ */
wikibusiness / gisgraphy-bundle example snippets
$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());