You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
866 B
PHTML
35 lines
866 B
PHTML
5 years ago
|
<?php
|
||
|
|
||
|
/**
|
||
|
* 地址区域结构
|
||
|
* @author auto create
|
||
|
*/
|
||
|
class Area
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* 标准行政区域代码.参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20120105_402777427.htm
|
||
|
**/
|
||
|
public $id;
|
||
|
|
||
|
/**
|
||
|
* 地域名称.如北京市,杭州市,西湖区,每一个area_id 都代表了一个具体的地区.
|
||
|
**/
|
||
|
public $name;
|
||
|
|
||
|
/**
|
||
|
* 父节点区域标识.如北京市的area_id是110100,朝阳区是北京市的一个区,所以朝阳区的parent_id就是北京市的area_id.
|
||
|
**/
|
||
|
public $parent_id;
|
||
|
|
||
|
/**
|
||
|
* 区域类型.area区域 1:country/国家;2:province/省/自治区/直辖市;3:city/地区(省下面的地级市);4:district/县/市(县级市)/区;abroad:海外. 比如北京市的area_type = 2,朝阳区是北京市的一个区,所以朝阳区的area_type = 4.
|
||
|
**/
|
||
|
public $type;
|
||
|
|
||
|
/**
|
||
|
* 具体一个地区的邮编
|
||
|
**/
|
||
|
public $zip;
|
||
|
}
|
||
|
?>
|