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
, andMultiPolygon
. Geometric objects with additional properties are Feature objects. Sets of features are contained by FeatureCollection objects.
Read more on: https://geojson.org/
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 numberstate
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.
- Add
Bukit Larut
(Perak)
Ulu Langat
(SGR) becomeHulu Langat
Ulu Selangor
(SGR) becomeHulu 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 intoRompin
&Pulau Tioman
.
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 asSarikei
. 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 asSamarahan
. Assumption made based on location of the districts [wiki].Pakan
(Sarawak) set same zone asSarikei
. 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 axisTebedu
(Sarawak) not in the JAKIM list. Assumption made based on the districts that are on the same longitude axisTelang Usan
(Sarawak) set same zone asMiri
. Assumption made based on location of the districts [wiki].Subis
(Sarawak) set same zone asMiri
. Assumption made based on location of the districts [wiki].Beluru
(Sarawak) set same zone asMiri
. 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 axisHulu 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. TakingSitiawan
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 inBahagian Tawau (Timur)
are covered by other districts already (egKalabakan
). Hence,Tawau
is considered asBahagian Tawau (Barat)
, since it also containsBandar 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 inBahagian Sandakan (Timur)
are assumed to beKinabatangan
andBahagian Sandakan (Barat)
is considered asSandakan
, since it also containsBandar Sandakan
inside.