ebidtech/geoziplocation
Composer 安装命令:
composer require ebidtech/geoziplocation
包简介
Geo zipcode location
关键字:
README 文档
README
Given zipcode returns location
Sample USAGE:
$myFactory = new TranslatorFactory();
$ptTranslator = $myFactory->create('PT');
$region = $ptTranslator->getLocationForZip('4730');
$region->getType(); //returns "region"
$region->getName(); //returns "Norte"
$region->getId();
if ($region->hasSubLocation()) {
$zone = $region->getSubLocation();
$zone->getType(); //returns "zone"
$zone->getName(); //returns "Braga"
$zone->getId();
if ($zone->hasSubLocation()) {
$area = $zone->getSubLocation();
$area->getType(); //returns "area"
$area->getName(); //returns "Vila Verde"
$area->getId();
}
}
统计信息
- 总下载量: 8.82k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-10-17