Skip to content

mptwaktusolat/jakim.geojson

 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%