GithubHelp home page GithubHelp logo

jakim.geojson's Introduction

JAKIM Zone code based on daerah in Malaysia

GeoJson files containing the JAKIM zone code based on daerah in Malaysia.

GeoJSON is a format for encoding a variety of geographic data structures.

GeoJSON supports the following geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, and MultiPolygon. Geometric objects with additional properties are Feature objects. Sets of features are contained by FeatureCollection objects.

Read more on: https://geojson.org/

Methodology

From JAKIM website: https://www.e-solat.gov.my/, they show the JAKIM Code with their respective districts. I've collected those information and presents it nicely in MPT-Server site: https://mpt-server.vercel.app/locations.

Now, I need the districts geofences, so that I can determine one's districts given the coordinates. Luckily, I found the districts geojson file from nullifye: https://github.com/nullifye/malaysia.geojson

The original file is malaysia.district.geojson, containing this properties for each districts.

"properties": {
    "name": "Baling",
    "code_state": 2,
    "state": "KDH"
},
  • name is the district name, I use this to compare and match with the JAKIM information.
  • code_state is like MyKad center number
  • state is a short code for the state. This is not necessarily the same with the initial JAKIM code. But, I use this value to cross check and validate the data I've inputted manually to ensure there are no errors slipped in while in the process of adding the jakim zones data - check check_zones.py

A copy of the file is created named malaysia.district-jakim.geojson. A new item was added to the properties.

"properties": {
    "name": "Kuala Selangor",
    "code_state": 10,
    "state": "SGR",
    "jakim_code": "SGR02"
},

Check out Zone Visualization tool - an interactive tool to view map and jakim zones: https://github.com/mptwaktusolat/jakim_zones_map.

TODOs:

  • Add Bukit Larut (Perak)

Modification

  • Ulu Langat (SGR) become Hulu Langat
  • Ulu Selangor (SGR) become Hulu Selangor
  • Seperated Pulau Aur & Pulau Pemanggil from Mersing to individual features.
  • Hulu Perak is breaked apart into several mukims. A map of Hulu Perak districts is obtained from wiki, then using https://geojson.io/, the major mukims were traced back and added to the geojson file.
  • Rompin is breaked apart into Rompin & Pulau Tioman.

Assumptions

Some districts in geojson file doesn't have corresponding match in JAKIM list. I've made some assumptions based on the location of the districts and some data from Internet.

  • Maradong (Sarawak) set same zone as Sarikei. Assumption made based on location of the districts [wiki].
  • Tanjung Manis (Sarawak) not in JAKIM list. But found in JAIS website.
  • Asajaya (Sarawak) set same zone as Samarahan. Assumption made based on location of the districts [wiki].
  • Pakan (Sarawak) set same zone as Sarikei. Assumption made based on location of the districts [wiki].
  • Selangau (Sarawak) not in the JAKIM list. Assumption made based on the districts that are on the same longitude axis
  • Tebedu (Sarawak) not in the JAKIM list. Assumption made based on the districts that are on the same longitude axis
  • Telang Usan (Sarawak) set same zone as Miri. Assumption made based on location of the districts [wiki].
  • Subis (Sarawak) set same zone as Miri. Assumption made based on location of the districts [wiki].
  • Beluru (Sarawak) set same zone as Miri. Assumption made based on location of the districts [wiki].
  • Bukit Mabong (Sarawak) not in the JAKIM list. Assumption made based on the districts that are on the same longitude axis
  • Hulu Perak (Perak) not in JAKIM list. Taking information from Penyelarasan Zon-zon Waktu Solat Seluruh Malaysia.
  • Batang Padang (Perak) not in JAKIM list. Taking information from Penyelarasan Zon-zon Waktu Solat Seluruh Malaysia.
  • Manjung (Perak) not in the JAKIM list. Taking Sitiawan as they seem to share similar geographic space.
  • Perak Tengah (Perak) not in JAKIM list. Taking information from AzanPro zones database.
  • Kinta (Perak) not in the JAKIM list. Taking information from Penyelarasan Zon-zon Waktu Solat Seluruh Malaysia.
  • Hilir Perak (Perak) not in the JAKIM list. Taking information from Penyelarasan Zon-zon Waktu Solat Seluruh Malaysia.
  • Kerian (Perak) not in the JAKIM list. Taking information from Penyelarasan Zon-zon Waktu Solat Seluruh Malaysia.
  • Larut dan Matang (Perak) not in the JAKIM list. Taking information from AzanPro zones database.
  • Muallim not in JAKIM list. Assumptions were made from neighboring districts (Tanjung Malim/Slim River).
  • Tawau (Sabah). From Jakim list, there are splitted into two zones, Bahagian Tawau (Timur) & Bahagian Tawau (Barat). However, no splitting were made since area in Bahagian Tawau (Timur) are covered by other districts already (eg Kalabakan). Hence, Tawau is considered as Bahagian Tawau (Barat), since it also contains Bandar Tawau inside.
  • Tongod (Sabah) not in the JAKIM list. Taking information from JADUAL WAKTU SOLAT BAGI NEGERI SABAH TAHUN 2022.
  • Sandakan (Sabah). From Jakim list, there are splitted into two zones, Bahagian Sandakan (Timur) & Bahagian Sandakan (Barat). However, no splitting were made since area in Bahagian Sandakan (Timur) are assumed to be Kinabatangan and Bahagian Sandakan (Barat) is considered as Sandakan, since it also contains Bandar Sandakan inside.

jakim.geojson's People

Contributors

iqfareez avatar nullifye avatar

Stargazers

 avatar  avatar

Watchers

 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.