<h1>Understanding Addresses</h1>
<p>If you want to understand the structure of addresses, this <a href="http://blog.phonemica.net/2012/04/geographical-classification/" rel="nofollow noreferrer">Phonemica post</a> is a good place to start. Turns out it's <a href="http://en.wikipedia.org/wiki/Administrative_divisions_of_the_People%27s_Republic_of_China#Levels" rel="nofollow noreferrer">complicated</a>.</p>
<p>Roughly speaking, it's a hierarchical system working from the top down, from left to right. So, country (optional), province, prefecture level city, small town, district, etc. Unfortunately the levels are not consistent across the board. Some cities are <code>直辖市</code> (directly-administered-cities) like Beijing and Shanghai, and as such, they do not belong to a province. Some provinces are called <code>自治区</code> (autonomous regions), and their internal structure is different from a <code>省</code> (province).</p>
<h1>Getting Data</h1>
<h3>Manually</h3>
<p>This is a rather slow process, but go to <a href="http://ditu.google.cn/" rel="nofollow noreferrer">Google maps (China)</a> or <a href="http://map.baidu.com" rel="nofollow noreferrer">Baidu maps</a>, zoom in or search and drill down to individual addresses.</p>
<p>From Baidu [Note, missing the province and city, which are obvious from the map]:</p>
<blockquote>
<p>河东区津塘路互助南里18号楼底商(近二宫公园)</p>
<p>武侯区通祠路39号一江城花2楼（春江花月夜对面）</p>
</blockquote>
<p>From Google [Full mailing addresses]:</p>
<blockquote>
<p>上海市徐汇区零陵路899号</p>
<p>浙江省绍兴市越城区鲁迅中路237号</p>
</blockquote>
<h3>Automation</h3>
<p>If you want to get a <em>lot</em> of addresses, you're going to need to automate. One approach you could try would be to scrape a website that does reviews, like <a href="http://www.dianping.com/" rel="nofollow noreferrer">Dianping</a>.</p>
<p>From Dianping [Same format as Baidu. You have to select a city first, and then all results are restricted to that area, and addresses are relative to it.]:</p>
<blockquote>
<p>成华区双庆路8号万象城1楼</p>
<p>江汉区解放大道557号中山广场5楼</p>
</blockquote>
<p><strong>Cheers, and happy data-ing!</strong></p>

CC BY-SA 3.0
2013-01-24T22:34:39.357Z
2013-01-24T22:34:39.357Z
2020-06-17T09:50:11.587Z
Stumpy Joe Pete
<p>I need to populate a database with Simplified Chinese mailing addresses. Where can I find some test data?</p>
<h3>Edit</h3>
<p>Since I'm trying to work with these addresses in a computer program, it would be nice to know how Chinese mailing addresses are put together. What is the format? Are they like US postal addresses?</p>
<p>Knowing something about the format of mailing addresses--both in theory and as they appear in practice on, in speech and on the internet--would be greatly helpful to someone trying to:</p>
<ul>
<li><p>Generate plausible entries in a database of mailing addresses.</p>
</li>
<li><p>Parse or scrape addresses in automated way.</p>
</li>
<li><p>Communicate in Chinese where you live to a taxi driver.</p>
</li>
<li><p>Mail a letter to someone in China.</p>
</li>
<li><p>Learn about how the administration of geographical regions works in China.</p>
</li>
</ul>

CC BY-SA 3.0
2013-01-24T22:35:06.573Z
Mark, hello and welcome to Chinese Language & Usage. I'm sorry but this site is only about Chinese and its use, so your question is off topic here. Note that the -1 is automatic. :)
Alenanno
CC BY-SA 3.0
2013-01-24T22:41:40.150Z
@Alenanno Disagree about it being off topic. The question needs to be rounded out a bit, but asking "What format are addresses in?", "What are some sample Chinese addresses and their structure?" and "Can you help me find a corpus of Chinese addresses?" all seem perfectly reasonable for this site.
Stumpy Joe Pete
CC BY-SA 3.0
2013-01-24T22:44:42.450Z
@StumpyJoePete Is the question about Chinese language (as in grammar, rules, etc) and usage? No, rather the OP is asking other people to provide links to external data. Even the examples you gave would probably be better for another site.
Alenanno
CC BY-SA 3.0
2013-01-24T22:56:13.607Z
@Alenanno I'm going to throw out a wild guess and say the OP is programming something that needs to know something about the structure of Chinese addresses. Although he just asked for external data links, he _should have_ asked for an explanation of Chinese addresses, which is broadly applicable. In any event, I'm personally interested in the intersection of Chinese language and data science, so I'm glad to help.
Stumpy Joe Pete
CC BY-SA 3.0
2013-01-25T00:14:31.050Z
@Alenanno Sorry, chat isn't working for me. Reopen if you think this edit improves the question to an acceptable level.
Stumpy Joe Pete
CC BY-SA 3.0
2013-01-25T23:15:05.897Z
@StumpyJoePete I don't think your edit is what the OP wanted to know, however it does make it a much better (but different) question.
NS.X.
<simplified-characters><software><database>
Where can I find sample Simplified Chinese mailing address data?
# Where can I find sample Simplified Chinese mailing address data?

(Asked by: username_0 on 2013-01-24)

I need to populate a database with Simplified Chinese mailing addresses. Where can I find some test data?

### Edit

Since I'm trying to work with these addresses in a computer program, it would be nice to know how Chinese mailing addresses are put together. What is the format? Are they like US postal addresses?

Knowing something about the format of mailing addresses--both in theory and as they appear in practice on, in speech and on the internet--would be greatly helpful to someone trying to:

* Generate plausible entries in a database of mailing addresses.
* Parse or scrape addresses in automated way.
* Communicate in Chinese where you live to a taxi driver.
* Mail a letter to someone in China.
* Learn about how the administration of geographical regions works in China.

**Tags:** simplified-characters, software, database

> **Comments:**
> **username_1**: Mark, hello and welcome to Chinese Language & Usage. I'm sorry but this site is only about Chinese and its use, so your question is off topic here. Note that the -1 is automatic. :)  
> **username_2**: @username_1 Disagree about it being off topic. The question needs to be rounded out a bit, but asking "What format are addresses in?", "What are some sample Chinese addresses and their structure?" and "Can you help me find a corpus of Chinese addresses?" all seem perfectly reasonable for this site.  
> **username_1**: @StumpyJoePete Is the question about Chinese language (as in grammar, rules, etc) and usage? No, rather the OP is asking other people to provide links to external data. Even the examples you gave would probably be better for another site.  
> **username_2**: @username_1 I'm going to throw out a wild guess and say the OP is programming something that needs to know something about the structure of Chinese addresses. Although he just asked for external data links, he _should have_ asked for an explanation of Chinese addresses, which is broadly applicable. In any event, I'm personally interested in the intersection of Chinese language and data science, so I'm glad to help.  
> **username_2**: @username_1 Sorry, chat isn't working for me. Reopen if you think this edit improves the question to an acceptable level.  
> **username_3**: @StumpyJoePete I don't think your edit is what the OP wanted to know, however it does make it a much better (but different) question.  

---

## 1 answers

### Answer by username_2 on 2013-01-24. Score: 3

# Understanding Addresses

If you want to understand the structure of addresses, this [Phonemica post](http://blog.phonemica.net/2012/04/geographical-classification/) is a good place to start. Turns out it's [complicated](http://en.wikipedia.org/wiki/Administrative_divisions_of_the_People%27s_Republic_of_China#Levels).

Roughly speaking, it's a hierarchical system working from the top down, from left to right. So, country (optional), province, prefecture level city, small town, district, etc. Unfortunately the levels are not consistent across the board. Some cities are `直辖市` (directly-administered-cities) like Beijing and Shanghai, and as such, they do not belong to a province. Some provinces are called `自治区` (autonomous regions), and their internal structure is different from a `省` (province).

# Getting Data

### Manually

This is a rather slow process, but go to [Google maps (China)](http://ditu.google.cn/) or [Baidu maps](http://map.baidu.com), zoom in or search and drill down to individual addresses.

From Baidu [Note, missing the province and city, which are obvious from the map]:

> 河东区津塘路互助南里18号楼底商(近二宫公园)
>
> 武侯区通祠路39号一江城花2楼（春江花月夜对面）

From Google [Full mailing addresses]:

> 上海市徐汇区零陵路899号
>
> 浙江省绍兴市越城区鲁迅中路237号

### Automation

If you want to get a *lot* of addresses, you're going to need to automate. One approach you could try would be to scrape a website that does reviews, like [Dianping](http://www.dianping.com/).

From Dianping [Same format as Baidu. You have to select a city first, and then all results are restricted to that area, and addresses are relative to it.]:

> 成华区双庆路8号万象城1楼
>
> 江汉区解放大道557号中山广场5楼

**Cheers, and happy data-ing!**


---

