不知道吃什么怎么办| 八一年属什么生肖| 什么食物含钙量最高| 地中海贫血是什么病| 姨妈少是什么原因怎么办| 1985是什么年| 1887年属什么生肖| 死心是什么意思| 图图是什么意思| 什么时候秋天| 身体发烧是什么原因| 口酸是什么原因| 肺部积水是什么原因引起的| 沆瀣一气是什么意思| 眉头有痣代表什么| 唾液是什么| 12月13日是什么星座| 梦见放生鱼是什么意思| 为什么用| 甲功能5项检查是查的什么| 扁桃体发炎不能吃什么| 拉拉是什么| 急救物品五定是什么| 蜂蜜跟什么不能一起吃| 严重失眠吃什么药最好| 悟性高是什么意思| trace是什么意思| 四川有什么山| 人为什么会抽筋| 湿气重吃什么| 试纸一条红杠是什么意思| 阿司匹林肠溶片什么时间吃最好| 哎呀是什么意思| bnp是什么意思| gdp指的是什么| 梦见水果是什么意思| 食指上有痣代表什么| 胃烧灼感是什么原因引起的| 金匮肾气丸治什么病| 都有什么快递| 部长什么级别| 百叶是什么| 乔迁新居送什么礼物| 困水是什么意思| 列文虎克发明了什么| 左侧肋骨下面是什么器官| 中药一剂是什么意思| 虎是什么意思| 财年是什么意思| 伤口不愈合用什么药| jb是什么意思| 1973年是什么年| cordura是什么面料| 滴虫性阴炎有什么症状表现| 怀孕了为什么还会出血| 前列腺增大吃什么药| 宫腔粘连有什么症状| 蟠桃为什么是扁的| 为什么七星瓢虫是益虫| 为什么天空是蓝色的| 湿气重吃什么水果好| 什么是代偿| nbp是什么意思| 辣椒炒肉用什么肉| 装模作样是什么生肖| iss是什么意思| 放射科检查什么| 禾字五行属什么的| DHL是什么| 红花和藏红花有什么区别| 校草是什么意思| 净身是什么意思| 95年属什么生肖婚配表| 手指头抽筋是什么原因| 什么人容易得心理疾病| 17年是什么年| 什么好像什么| 百合为什么是苦的| 你把我当什么| 大千世界什么意思| 懵懂少年是什么意思| 什么是带状疱疹| 心什么气什么| 梦见吃水饺是什么预兆| 脑瘤有什么症状| quest是什么车| 鹿角有什么功效和作用| 小人是什么意思| 乌灵参是什么东西| 心肌炎挂什么科| 对峙什么意思| 耳后淋巴结肿大吃什么消炎药| 儿童热感冒吃什么药| 妈妈的妹妹叫什么| 肝功能四项检查什么| 数字化摄影dr是检查什么| 蓬头垢面是什么意思| 淡定自若什么意思| 胰腺炎恢复期吃什么好| 养肝护肝吃什么药效果最好| 6541是什么药| 喝水喝多了有什么坏处| 北极为什么没有企鹅| 运动员为什么吃香蕉| 什么茶最好喝| 乘胜追击什么意思| 什么是轻食| 卷腹是什么| 同字五行属什么| 羊肉和什么相克| 行运是什么意思| 中药吃多了对人体有什么伤害| 同病相怜是什么意思| 增强抵抗力免疫力吃什么| 圆寂为什么坐着就死了| 左耳烫代表什么预兆| 淋巴结是什么东西| 撕票是什么意思| 时至今日是什么意思| 女孩子学什么专业好| 风心病是什么病| 两边白头发多是什么原因造成的| 什么是ppi| 书的五行属性是什么| 为什么要打胰岛素| 送礼物送什么好| 大便出血吃什么药好得快| 深圳市市长是什么级别| 鱼肚是什么| pgi2在医学是什么意思| 姨妈来了吃什么水果好| 平板支撑有什么好处| 黄丫头是什么鱼| 口蘑是什么蘑菇| 腰封是什么| 肛门周围痒是什么病| 夜光杯是什么材质| 婚姻是爱情的坟墓是什么意思| 矜贵是什么意思| 尿葡萄糖是什么意思| 殁送是什么意思| 拉缸是什么意思| 女人八卦是什么意思| 孕妇咳嗽可以吃什么药| 左侧上颌窦囊肿是什么意思| 养猫需要准备什么东西| 梦见老公出轨什么意思| 79年的羊是什么命| 婚检挂什么科| 高锰酸钾有什么作用| 山魈是什么| 清火喝什么茶| 做提肛运动有什么好处| 便秘吃什么好| 猪血和鸭血有什么区别| 脸肿是什么病| 针眼是什么原因引起的| 书生是什么生肖| 丹参泡水喝有什么功效| 双子座和什么座最不配| 吃什么可以让奶水增多| 额头长闭口是什么原因| 副连长是什么军衔| 脑梗病人吃什么营养恢复最好| 口甲读什么| 泡妞是什么意思| 右上眼皮跳是什么预兆| 什么东西最吸引蛇| 甘油三酯高会引起什么病| 魁拔4什么时候上映| 心肌受损会出现什么症状| 伤口用什么消毒最好| 双修是什么意思| 心力憔悴是什么意思| 脱发缺少什么维生素| 什么是好词| 维生素c弱阳性是什么意思| 胎停会有什么症状| 金字旁加巨念什么| psa是什么意思| 妈妈姐姐的女儿叫什么| 宫颈糜烂什么症状| 喝普洱茶有什么好处| 部首和偏旁有什么区别| 甲鱼和什么食物相克| pc是什么材质| 皮肤瘙痒用什么药治疗| 长期喝饮料对身体有什么危害| 打完升白针有什么反应| 深圳副市长什么级别| 尿酸盐结晶是什么意思| 血常规wbc是什么意思| 跳蛋有什么用| 罗贯中和施耐庵是什么关系| 为什么人| 耳鸣吃什么药| 81年的鸡是什么命| 歼31为什么没消息了| 痛风吃什么最好| 侵犯是什么意思| 肾疼是什么原因| 脸基尼是什么意思| 自愈是什么意思| 血压低吃什么补| 工字可以加什么偏旁| 什么时候有胎心| 君子兰什么时候开花| 11月15日出生是什么星座| 什么药物过量会致死| 早上嘴苦是什么原因| 脸无缘无故的肿是什么原因| 下套什么意思| dha宝宝什么时候吃最好| 皓五行属什么| 孕妇口腔溃疡能用什么药| 肩膀麻木是什么原因引起的| 蒸桑拿是什么意思| 阑尾在人体的什么位置| 肝属什么| 三个火字念什么| 什么是八爪鱼| 什么情况下会猝死| 颈椎压迫手麻吃什么药| tvoc是什么意思| 西柚是什么水果| er是什么元素| 鱼最喜欢吃什么| 肾功能三项检查什么| 兰姓是什么民族| 人为什么会便秘| 小妮子什么意思| 土中金是什么数字| lalpina是什么牌子| 头脑简单是什么生肖| 8月6日什么星座| 干黄酱是什么酱| 阴茎勃起不硬吃什么| 头疼呕吐吃什么药| 对牛弹琴代表什么生肖| 心电图能检查出什么| 拘禁是什么意思| 沙棘原浆有什么作用| 经常喝苏打水有什么好处和坏处| 洋葱什么时候收获| 落是什么生肖| 李世民字什么| 心肌缺血吃什么| 为什么会长闭口| 提单是什么| 人工流产和无痛人流有什么区别| 2月是什么月| 舌苔厚黄是什么病| 做梦笑醒了有什么征兆| 高血糖有什么症状| 流产后吃什么水果最佳| 癫痫是什么意思| 23333是什么意思| 北京佑安医院擅长什么| 尿常规检查挂什么科| 过敏性皮炎用什么药| 74年出生属什么生肖| 一什么永什么成语| 男士私处瘙痒用什么药| 一醉方休什么意思| 百度

张献忠江口沉银古河道位置确定 3D藏宝图绘制立功

Placetypes

百度 按理说,作为NBA级别的外援,巴斯打CBA应该不成问题,常规赛里稳定的20+10输出,中投也是稳如狗的存在。

This image was generated using the handy wof-graph-placetypes script in the py-mapzen-whosonfirst-placetypes library

Placetypes

All place types have a unique 64-bit numeric ID. It should always be possible to query or filter for places by that numeric ID so that the burden of remembering whether it is neighbourhood or neighborhood or quartier or whatever is reserved for friendly banter over drinks.

In alphabetical order the current list of placetypes in Who's On First is:

address

102312329

This is an open question. The question being: How/what do we do with OpenAddresses? We aren't sure of anything, yet, except maybe to put this here as a placeholder for probably between buildings and venues

Addresses are considered common optional.

building

102312327

See also: Imagining the Built Works Registry

Buildings are considered common optional.

campus

102312331

Things like universities or office complexes and airports. Something something something, Burning Man and other annual events.

Campuses are considered common optional.

continent

102312309

I think we're all in pretty broad agreement about continents, yeah?

Continents are considered common.

country

102312307

Basically places that issue passports, notwithstanding the details (like empires which actually issue the passports...)

Continents are considered common.

county

This needs a better - that is more abstract - name. Like "region" instead of state, province, whatever... but for counties.

Counties are considered common optional.

dependency

102312313

It's not a sub-region of a country but rather dependent on a parent country for defence, passport control, subsidies, etc.

Dependencies are considered common optional.

disputed

102322043

Places that one or more parties claim as their own. As of this writing all disputed places are parented only by the country (and higher) IDs of the claimants. This isn't to say there aren't more granular hierarchies to be applied to these place only that we are starting with the simple stuff first.

Disputed areas are considered common optional.

empire

102312335

Or "sovereignty" but really... empire. For example the Meta United States that contains both the US and Puerto Rico.

Empires are considered common optional.

localadmin

404221409

In many countries, the lowest level of government. They contain one or more localities (or "populated places") which themselves have no authority. Often but not exclusively found in Europe.

Localadmins are considered common optional

locality

102312317

Towns and cities, independent of size or population. Things with neighbourhoods, basically.

Localities are considered common.

macrocounty

404221413

Bundles of counties!

Macrocounties are considered optional. These exists mostly in Europe.

macrohood

102312323

Like "BoCoCa" which in WOE is a neighbourhood that parents another... neighbourhood.

Macrohoods are considered optional.

macroregion

404221411

Bundles of regions! These exists mostly in Europe.

Macroregions are considered optional.

marinearea

404528655

Places with fish and boats.

Marine areas are considered common_optional.

metroarea

102371933

Things like "The Bay Area" – this one is hard so we shouldn't spend too much time worrying about the details yet but instead treat as something we want to do eventually.

Metropolitain areas are considered common optional.

microhood

102312321

Because all place is disputed. And everyone has a name for a place that will offend someone else.

Microhoods are considered optional.

neighbourhood

102312319

Things no one will agree on. Ever.

Neighbourhoods are considered common.

ocean

404528653

The really big marine areas. The ones that you sometimes feel cast adrift on...

Oceans are considered common_optional.

planet

102312341

The big round thing you're standing on.

region

102312311

States, provinces, regions. We call them regions. These are places that would have a bone in a "states rights" argument.

Regions are considered common.

venue

102312325

Things with walls, often but mostly things that people stand around together. Things with walls might be public (a bar) or private (your apartment) by default.

Venues are considered common optional.

ISO Country codes

Per the ISO 3166 spec which states:

User-assigned code elements are codes at the disposal of users who need to add further names of countries, territories, or other geographical entities to their in-house application of ISO 3166-1, and the ISO 3166/MA will never use these codes in the updating process of the standard. The following codes can be user-assigned:[19]      Alpha-2: AA, QM to QZ, XA to XZ, and ZZ     Alpha-3: AAA to AAZ, QMA to QZZ, XAA to XZZ, and ZZA to ZZZ     Numeric: 900 to 999 

We use the following ISO country codes:

XK

We just followed Geonames' lead and have assigned XK to be the ISO country code for Kosovo.

XN

For Null Island.

XX

XX denotes a place disputed by two or more (ISO) countries.

XY

XY denotes an ISO country that has yet to be determined (by us). You might typically see this is a record for a freshly created place that hasn't been fully vetted or editorialized yet.

XZ

XZ is the ISO country code equivalent of wof:parent_id=-2 or :shrug: the world is a complicated place.

Hierarchies

A Who's On First (wof:) hierarchy is a list of dictionaries, which each item is a dictionary containing a full hierarchy. Like this:

"wof:hierarchy": [ 	{ "neighbourhood_id": 9997, "locality_id": 9997, "metro_id": 9998, "county_id": 9998, "region_id": 9998, "country_id": 9998, "continent_id": 9998 }, 	{ "neighbourhood_id": 9997, "locality_id: 9997, "metro_id": 9999, "county_id": 9999, "region_id": 9999, "country_id": 9999, "continent_id": 9999 } ] 

See below for details and rationale.

How did we get here?

The following is a verbatim written exercise to work through the issue of how a hierarchy should be represented or, more specifically, how the potentially multiple hierarchies that a given place might encompass should be represented.

Something something something as elements on the root properties dictionary. Like this:

{ 	"wof:neighbourhood_id": 9999, 	"wof:locality_id": 9999, 	"wof:county_id": 9999, 	"wof:region_id": 9999, 	"wof:country_id": 9999, 	"wof:continent_id": 9999 } 

Something something something as a dictionary on the root properties dictionary. Like this:

"wof:hierarchy": { 	"neighbourhood_id": 9999, 	"locality_id": 9999, 	"county_id": 9999, 	"region_id": 9999, 	"country_id": 9999, 	"continent_id": 9999 } 

This has the advantage of keeping all the hierarchy information in one place however it is left as an exercise to the user to enforce the actual order of the hierarchy since there is no way to be certain that programming langage X will ensure the ordering of the dictionary keys. We could define the hierarchy as a list of dictionaries which would allow to explicitly encode the parent for that node but those extra bytes in each record will add up fast when dealing with a global hierarchy. Like this:

"wof:hierarchy": [ 	{ "neighbourhood_id": 9999, "parent": "locality_id" }, 	{ "locality_id": 9999, "parent: "county_id" }, 	{ "county_id": 9999, "parent": "region_id" }, 	{ "region_id": 9999, "parent": "country_id" }, 	{ "country_id": 9999, "parent": "continent_id" }, 	{ "continent_id": 9999, "parent": "" } } 

Meanwhile we also know that we want to support certain place types that will have multiple parents (because geography) like metropolitain areas or, if we choose to include them in the gazetteer proper, road networks.

At a minimum this means that some of the values for placetypes have to be lists which probably means all of the values should be lists so that people don't have to think about context or test data types. For example:

"wof:hierarchy": { 	"neighbourhood_id": [ 9999 ], 	"locality_id": [ 9999 ], 	"metropolitain_area": [ 9999 ], 	"county_id": [ 9999, 9999 ], 	"region_id": [ 9999 ], 	"country_id": [ 9999 ], 	"continent_id": [ 9999 ], } 

However, it is possible to imagine a place type with not only multiple parents but multiple ancestors. A timezone or, again, a road network. In which case you find yourself with a dictionary whose values are lists of dictionaries. At which point you risk spiralling off in to Semantic Web graph theory quicksand.

So maybe the thing to do is suffer mixed content (unique IDs and lists) where the rule is the immediate (outer) hierarchy stops the moment there are multiple parents. Like this:

"wof:hierarchy": { 	"neighbourhood_id": 9999, 	"locality_id": 9999, 	"metro_id": [ 		{ "metro_id": 9998, "county_id": 9998, "region_id": 9998, "country_id": 9998, "continent_id": 9998 }, 		{ "metro_id": 9999, "county_id": 9999, "region_id": 9999, "country_id": 9999, "continent_id": 9999 } 	] } 

Or maybe the hierarchy is always just a list of dictionaries, each containing a full hierarchy. Like this:

"wof:hierarchy": [ 	{ "neighbourhood_id": 9997, "locality_id": 9997, "metro_id": 9998, "county_id": 9998, "region_id": 9998, "country_id": 9998, "continent_id": 9998 }, 	{ "neighbourhood_id": 9997, "locality_id: 9997, "metro_id": 9999, "county_id": 9999, "region_id": 9999, "country_id": 9999, "continent_id": 9999 } ] 

Reasons why this last suggestion is good:

  • It is explicit
  • It is easy to compare multiple hierarchies
  • It doesn't require the user do a lot of mental arithmetic to construct the complete hierarchy or to support whatever "efficiencies" we dream up in the moment
  • It is easier to change going forward (say before an "official" launch) than the alternatives

Reasons why this last suggestion is, or might be, bad:

  • If we support metropolitain areas then many places (localities, neighbourhood, venues) may have multiple hierarchies where the only difference will (likely) be the county, leaving all the remaining ancestors in common
  • File size, disk space and bandwidth - this is the corollary of the first point and akin to whitespace or coordinates with > 6 decimal points in GeoJSON files

In the end the "good" reasons outweighed the "bad" reasons.

See also

眼睛大小不一样是什么原因 时蔬是什么菜 心情烦躁吃什么药 宫颈出血是什么原因 兔死什么悲
白蛋白低是什么意思 98年出生属什么 水痘用什么药 雨云是什么字 吃猪皮有什么好处和坏处
水饮是什么意思 林冲到底属什么生肖的 检查肾挂什么科 9月30日什么星座 石女是什么意思啊
乙酰胆碱的作用是什么 痛风不能吃什么食物表 易建联为什么不打nba 孕妇喝什么汤最好最有营养 王羲之兰亭序是什么字体
龙头龟身是什么神兽cj623037.com 产假从什么时候开始算zsyouku.com 属猪跟什么属相最配hcv7jop9ns2r.cn 人生的意义是什么hcv9jop5ns3r.cn 宁的五行属性是什么aiwuzhiyu.com
夜来香是什么花hcv9jop0ns9r.cn 撒贝宁是什么民族hcv9jop8ns0r.cn 什么时候立冬hcv8jop3ns5r.cn 猫头鹰吃什么hcv9jop4ns8r.cn 负数是什么hcv7jop4ns8r.cn
心颤吃什么药效果好gysmod.com 梦见被警察抓预示什么hcv8jop5ns8r.cn 护理学是学什么的hcv8jop7ns9r.cn 什么是排卵期怎么计算hcv9jop3ns8r.cn rn是什么意思hcv8jop4ns3r.cn
轻度脂肪肝吃什么药youbangsi.com 滔滔不绝的绝是什么意思hcv9jop4ns0r.cn 艾灸是什么东西hcv8jop0ns0r.cn 风生水起是什么生肖hcv8jop4ns4r.cn 鼻窦炎吃什么药效果好hcv7jop9ns9r.cn
百度