Fetch and parse Finnish streetnames, zip codes and municipalities provided by Posti.fi. Also includes geocoder for geotagging addresses.
The recommended way to install FinZip is through Composer.
{
"require": {
"tangervu/finzip": "dev-master",
"php-google-maps/php-google-maps": "dev-master"
}
}<?php
require 'vendor/autoload.php';
$finzip = new FinZip();
//Load list of localities
$localities = $finzip->getLocalities();
while($row = $localities->fetch()) {
print_r($row);
}
//Load all Finnish street addresses and their zip codes
$streetnames = $finzip->getStreetnames();
while($row = $streetnames->fetch()) {
print_r($row);
}LGPL-3.0