NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Dear developers!
I use the features of OSM for a while, mostly for representing geodata related to subareas of my country (Hungary).
I see that most countries has the following hierarchy :
level 2: country itself
level 4: subregion
level 5: further division of the subregion
level 6: counties
level 7: part of counties ("járás")
level 8: villages and cities
level 9: districts (of capital)

The subareas are well linked to each other with "subarea" typed members. But what I miss is to include villages and cities in this hierarchy.
What is the osm policy about extending member declarations of subareas?
I wrote a program which fetches all the villages, and searches for the correspondent level7 area what they are included in. (earlier I modified the map to link missing admin_centre nodes correctly) If you are interested in, i can adopt the method to other countries, it's fast enough to process the whole world if needed. Hovewer, the last step of submitting informations is still missing.
The final result is now a list of village-subarea id pair I calculated which would be posted somehot to the map itself. I guess I should use the API somehow to this, if you have any simple solution to this operation (only want to add a single member as the following):

member type=relation ref=[village_id] role=subarea

Would say thanks for any help.

asked 11 May '14, 10:49

Cpt%20Balu's gravatar image

Cpt Balu
accept rate: 0%

edited 11 May '14, 10:53

The "subarea" notation is not established practice in OSM - it is only used in some countries, and generally considered unnecessary or even problematic, much like the is_in tag that we used to have. Whether or not something is a subarea of something else can, and should, be determined by looking at the geometry, not by following some explicit links that someone has added.

Please do not add any subarea tagging to regions where the concept isn't used, and under no circumstances should you automatically generate subarea links and add them.

permanent link

answered 11 May '14, 11:40

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 11 May '14, 10:49

question was seen: 34,447 times

last updated: 11 May '14, 11:40

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum