Coder Social home page Coder Social logo

arrayaccess / indonesia-postal-and-area Goto Github PK

View Code? Open in Web Editor NEW
167.0 10.0 87.0 243.83 MB

Indonesia Postal Code & Area (BPS)

Home Page: https://www.arrayiterator.com

License: MIT License

indonesia bps geometry geojson province postal-code sqlite csv kelurahan kecamatan kota provinsi kabupaten

indonesia-postal-and-area's Introduction

INDONESIA POSTAL CODE & AREA

This is collections of Indonesia area & postal codes.

This repository contains THOUSANDS & Binary Data!

Note For You

Due this repository & another opensources are not profitable to us. We will shutdown then delete our codes & data.

Because the open source project just profitable to another.

Very thanks to many peoples that contribute the codes to our projects.

But, doing the un-usefullness to our better life. We make a decision to delete our previous & current opensources projects.

Our team contributes, distribute and provide many things, but we just receive Zero & Never getting benefit from our development process, and we feel very tired that provide the free codes to many commercial companies.

Thanks You

Note For Commercial Company

Please be kind & be respectful to the opensources projects.

You have commercial & profitable company that you've been built from the free resource & opensource. So, contribute to their life basis even only 1 cent.

Before clone, make sure you know what you'll do.

AWESOME OF YOU

GitHub Sponsor

COLLECTIONS

  • Postal Code : 14955
  • Villages : 83342
  • Sub-Districts : 7228
  • Cities : 514
  • Provinces : 34
  • Countries : 1 (Indonesia Only)

STRUCTURES

Data Directory

data/
    ├─── csv/
    |   └─── 62/                                        (Country csv directory)
    |       ├─── countries.csv                          (Countries csv data)
    |       ├─── provinces.csv                          (Provinces csv data)
    |       ├─── cities.csv                             (Cities csv data)
    |       ├─── subDistricts.csv                       (Sub-Districts csv data)
    |       ├─── villages.csv                           (Villages csv data)
    |       ├─── postalCodes.csv                        (Postal Codes csv data)
    |       └─── translations.csv                       (Translations csv data)
    ├─── database/
    |   ├─── records.sqlite.db                          (SQLite Binary Database - geometry records has been set to null)
    |   ├─── ddl.sql                                    (DDL)
    |   ├─── ddl.uml
    |   └─── ddl.uml.png
    ├─── json/
    |   ├─── area/
    |   |   └─── 62/                                    (country root directory)
    |   |       ├─── 62.json                            (country json info)
    |   |       └─── [0-9]{2}/                          (provinces root directory)
    |   |           ├─── [0-9]{2}.json                  (province json info)
    |   |           └─── [0-9]{4}/                      (cities root directory)
    |   |               ├─── [0-9]{4}.json              (city json info)
    |   |               └─── [0-9]{7}/                  (sub-districts root directory)
    |   |                   └─── [0-9]{7}.json          (sub-district json info)
    |   |                       └─── [0-9]{11}/         (villages root directory - contain single file)
    |   |                           └─── [0-9]{11}.json (village json info)
    |   ├─── postal/                                    (country postal codes root directory)
    |   |   └─── 62.json                                (list of country postal codes)
    |   └─── translations/
    |       └─── 62/                                    (country translations root directory)
    |           └─── en.json                            (list of available areas translations)    
    └─── geojson/
       └─── 62/                                         (country geojson root directory)
           ├─── 62.json                                 (country geojson)
           └─── [0-9]{2}/                               (provinces geojson root directory)
               ├─── [0-9]{2}.json                       (province geojson)
               └─── [0-9]{4}/                           (cities geojson root directory)
                   ├─── [0-9]{4}.json                   (city geojson)
                   └─── [0-9]{7}/                       (sub-districts geojson root directory)
                       └─── [0-9]{7}.json               (sub-district geojson)


Json Areas

Latitude & Longitude contains centroid of MultiPolygon take from geojson using geophp

{
  "code": "integer",
  "name": "string",
  "parent": "integer",
  "latitude": "float|null",
  "longitude": "float|null",
  "postal": ["array<integer>"],
  "children": ["array<integer>"]
}

GEO-JSON

Geo-JSON only available from Country to Sub-Districts, villages are not available.

Read More About GeoJSON

{
  "type": "FeatureCollections",
  "features": ["array<object>"]
}

Example :

{
  "type": "FeatureCollections",
  "features": [
    {
      "type": "Feature",
      "code": "integer",
      "properties" : {
        "Kind"  : "string",
        "Code"  : "integer",
        "Name"  : "string",
        "Year"  : "integer|string",
        "Source": "BPS",
        "Parent": "integer"
      },
      "geometry": {
        "type": "MultiPolygon",
        "coordinates" : [
          [
            [
                [
                  91.0000001,
                  1.00000001
                ],
                [
                  92.0000002,
                  2.00000002
                ]
            ]
          ]
        ]
      }
    }
  ]
}

DATA SOURCE

DATA PROCESSOR

NOTE

  • Badan Pusat Statistik Indonesia (BPS) contains detailed polygons, it will make this repository contains huge data.
  • Some of GeoJson not available
  • Database Files on all columns with xxxx_geometry has been set to null. Please insert manually from data/geojson, Trees file name as code
  • Additional Notes: BPS still 34 Provinces until the end of 2023 (we can't update the data)

DISCUSSION

LICENSE

MIT LICENSE

indonesia-postal-and-area's People

Contributors

arrayiterator avatar vonsogt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

indonesia-postal-and-area's Issues

Update data

bang @ArrayIterator nggk coba update data terbaru terkait penambahan provinsi menjadi 37. it will help me to continue my project. thanks bang,

Kota dan Kabupaten di cities

Perbedaan antara dia Kota / Kabupaten bagaimana ya?
Misalnya seperti;
3603 TANGERANG
3671 TANGERANG

Semestinya 3603 itu Kabupaten jika mengacu pada data Wilayah Administrasi - Kemendagri.

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.