- I couldn't find any Thailand maps with updated data in form of GeoJSON.
- The data avalible is from The Humanitarian Data Exchange which is provided in form of shp file.
- All code that will be used to convert the map is written in Python.
- Map is used by The Researcher. See the specific build at the-researcher-covid-bot-map
- Map Data is updated at 2019-03-01
- Python 3
- pandas
- geopandas
- requests (for downloading files)
- Install Requirements
pip install -r requirements.txt - Download the shp file
python download_thailand_map.py. Will download and unzipped files. - Build the map with
python convert_shp_to_geojson.py [MODE] [ADM LEVEL],
For example :python convert_shp_to_geojson.py shape 2
- MODE : centroid, shape
- ADM LEVEL :
0 -> Country
1 -> Province
2 -> District
3 -> Subdistrict (Not Implemented)