Git Product home page Git Product logo

koatuu's Introduction

Державний класифікатор об'єктів адміністративно-територіального устрою України (КОАТУУ)

State Classifier of objects of administrative and territorial structure of Ukraine

Converter from KOATUU database to SQL files.

Information amount data source:

Source database may be downloaded from:

Code structure

Code consists from 10 chars:

Char number Description
1,2 Level 1 code
3 Level 2 type
4,5 Level 2 code
6 Level 3 type
7,8 Level 3 code
9,10 Level 4 code

Level 2 type (char 3)

Char number Description
1 міста обласного значення
2 райони Автономної Республіки Крим, області
3 райони міст, що мають спеціальний статус

Level 3 type (char 6)

Char number Description
1 міста районного значення
2 is unused
3 райони в містах обласного значення
4 селища міського типу, що входять до складу міськради
5 селища міського типу, що входять до складу райради
6 селища міського типу, що входять до складу райради в місті
7 міста, що входять до складу міськради
8 сільради, що входять до складу райради
9 сільради, села, що входять до складу райради міста, міськради

Example

5320283602,С,ЗАПСІЛЛЯ
Char number Description Value
53 level 1 code ПОЛТАВСЬКА ОБЛАСТЬ/М.ПОЛТАВА)
2 level 2 type райони Автономної Республіки Крим, області)
02 level 2 code ВЕЛИКОБАГАЧАНСЬКИЙ РАЙОН/СМТ ВЕЛИКА БАГАЧКА)
8 level 3 type сільради, що входять до складу райради)
36 level 3 code ОСТАП'ЇВСЬКА/С.ОСТАП'Є
02 level 4 code ЗАПСІЛЛЯ

Basic usage

  1. Download new database from http://www.ukrstat.gov.ua/klasf/st_kls/koatuu.zip and extract it;
  2. Сonvert KOATUU_xxxxxxxx.xls file to csv format;
  3. Run converter:
./convert.py --source KOATUU_26042018.csv --format=mysql --target "db.sql"

See also

koatuu's People

Contributors

sokil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.