這學期有參加一個內政部的數據競賽,主要是想做老幼托育的選址策略,

在現今台灣社會上越來越多三明治族(三明治族指得是,上有父母、下有孩子,自己又有工作在身。)的情況下,老人照護與托兒的需求也逐漸提升。目前全日本各地共有1400多家兒童老人日照中心,這類型的照顧機構在日本已遍地開花。

我們的產品即為「老幼共托,托育中心選址策略模型」,主要利用大數據分析的方式,建立一套考慮交通、環境、照護需求的預測分析模型,讓政府能找出目標受眾,並結合政府立案與民間配合,於適當的地點創造一個個適合照護兒童與老人的日照中心,並提供給目標受眾。

主要是使用內政部人口結構資料來找尋各村里托育的需求量,並用googlemap_api去找尋需求量高且環境適合的地點,我們考慮以下幾點因素:半徑內診所數量、半徑內醫院數量、半徑內圖書館數量、半徑內公園數量、半徑內公車站牌數量、半徑內捷運站出口數量等,藉由min_max_normalize的轉換,讓區塊有一個是否適合興建的指標,而政府單位便可使用此結果,去選擇一個適合的地點設立老幼托育的場所。

google api part

## Linking to GEOS 3.6.1, GDAL 2.2.3, PROJ 4.9.3

test

map <- town_location_draw("高雄市","前金區",500,100,1000,5000,300,300,500,100)
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
## 
## Attaching package: 'purrr'
## The following object is masked from 'package:jsonlite':
## 
##     flatten
## The following object is masked from 'package:rvest':
## 
##     pluck
## 
## Attaching package: 'BBmisc'
## The following objects are masked from 'package:dplyr':
## 
##     coalesce, collapse
## The following object is masked from 'package:base':
## 
##     isFALSE
## [1] "Town Ltd Completion:0.0833333333333333. Time cost:0.125630140304565"
## [1] "Town Ltd Completion:0.166666666666667. Time cost:0.221374988555908"
## [1] "Town Ltd Completion:0.25. Time cost:0.317118167877197"
## [1] "Town Ltd Completion:0.333333333333333. Time cost:0.403913021087646"
## [1] "Town Ltd Completion:0.416666666666667. Time cost:0.495797157287598"
## [1] "Town Ltd Completion:0.5. Time cost:0.587615966796875"
## [1] "Town Ltd Completion:0.583333333333333. Time cost:0.696313142776489"
## [1] "Town Ltd Completion:0.666666666666667. Time cost:0.788127183914185"
## [1] "Town Ltd Completion:0.75. Time cost:0.865018129348755"
## [1] "Town Ltd Completion:0.833333333333333. Time cost:0.958407163619995"
## [1] "Town Ltd Completion:0.916666666666667. Time cost:1.05526399612427"
## [1] "Town Ltd Completion:1. Time cost:1.14804410934448"
## [1] "Completion:0.142857142857143. Time cost:4.25466203689575"
## [1] "Completion:0.285714285714286. Time cost:8.51456594467163"
## [1] "Completion:0.428571428571429. Time cost:12.6801888942719"
## [1] "Completion:0.571428571428571. Time cost:16.9097690582275"
## [1] "Completion:0.714285714285714. Time cost:21.0714380741119"
## [1] "Completion:0.857142857142857. Time cost:25.663498878479"
## [1] "Completion:1. Time cost:30.0650269985199"
map