tangervu/finzip

Finnish localities, street names and zip codes / Suomalaiset paikkakunnat, kadunnimet ja postinumerot

dev-master 2017-08-27 08:16 UTC

This package is not auto-updated.

Last update: 2024-05-11 13:26:13 UTC


README

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