Skip to content

Instantly share code, notes, and snippets.

@simonw
Created June 15, 2017 23:20
Show Gist options
  • Select an option

  • Save simonw/13540aedb9faf8f70c4ed0a09b9ee35d to your computer and use it in GitHub Desktop.

Select an option

Save simonw/13540aedb9faf8f70c4ed0a09b9ee35d to your computer and use it in GitHub Desktop.
whosonfirst placetypes tree - for each whosonfirst placetype, shows what other placetypes are allowed to be its direct children
{
"building": [
"venue"
],
"county": [
"postalcode",
"localadmin",
"locality"
],
"borough": [
"macrohood",
"neighbourhood",
"neighborhood"
],
"localadmin": [
"borough",
"campus",
"postalcode",
"locality"
],
"macrocounty": [
"county"
],
"locality": [
"borough",
"campus",
"macrohood",
"postalcode",
"neighbourhood",
"neighborhood"
],
"country": [
"dependency",
"timezone",
"marinearea",
"macroregion",
"region",
"disputed"
],
"region": [
"postalcode",
"localadmin",
"macrocounty",
"county",
"locality"
],
"macrohood": [
"campus",
"neighbourhood",
"neighborhood"
],
"microhood": [
"venue",
"building",
"address",
"campus",
"intersection"
],
"planet": [
"ocean",
"timezone",
"marinearea",
"continent"
],
"dependency": [
"macroregion",
"region"
],
"macroregion": [
"region"
],
"address": [
"venue",
"building"
],
"disputed": [
"macroregion",
"region"
],
"empire": [
"country"
],
"intersection": [
"venue",
"building",
"address"
],
"continent": [
"empire",
"timezone",
"marinearea",
"country"
],
"campus": [
"venue",
"building",
"address",
"intersection"
],
"neighbourhood": [
"microhood",
"venue",
"building",
"address",
"campus",
"intersection"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment