Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 776 Bytes

File metadata and controls

41 lines (34 loc) · 776 Bytes

FinZip

Fetch and parse Finnish streetnames, zip codes and municipalities provided by Posti.fi. Also includes geocoder for geotagging addresses.

Installation

The recommended way to install FinZip is through Composer.

{
	"require": {
		"tangervu/finzip": "dev-master",
		"php-google-maps/php-google-maps": "dev-master"
	}
}

Examples

<?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);
}

License

LGPL-3.0