汤尔务/finzip

芬兰地区、街道名称和邮政编码 / Suomalaiset paikkakunnat, kadunnimet ja postinumerot

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

This package is not auto-updated.

Last update: 2024-09-28 15:28:53 UTC


README

获取并解析由Posti.fi提供的芬兰街道名称、邮政编码和市政府。还包括用于地址地理标记的地理编码器。

安装

安装FinZip的推荐方法是使用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