top of page

Mapping distance from villages to healthcare facilities in Thailand

Using village location data from here and healthcare facility location data from here, I used the Google Maps Direction API to compute the distance between villages and the 5 nearest neighbouring healthcare facilities arrived at via the k-nearest neighbour algorithm. The villages marked are those that are classified as being remote, according the Ministry of Public Health's criteria; in other words, they are located over 22.5 kilometres away (Figure 1) or over 30 minutes away by car (Figure 2) from the closest healthcare facility.

The analysis was conducted using R and the leaflet package was used to create the following visualisations.

Figure 1

Villages located over 22.5 kilometres from the closest healthcare facility

Figure 2

Villages that require over 30 minutes commute by car to the closest healthcare facility

bottom of page