學完了DialogFlow問地理位置,上雲端服務Cloud Run,和AoG上架,那在政府開放平台 (https://data.gov.tw/) 上找到了一個公共廁所的API, 那就來作一個AoG吧。
DialogFlow對話
介接opendata的api
從Json 格式中取出Name和Address 顯示給google 助理
[{"Country":"宜蘭縣","City":"壯圍鄉","Village":"復興村","Number":"1000206005-B-00002","Name":"壯圍沙丘旅遊服務園區1F室外女廁","Address":"宜蘭縣壯圍鄉壯濱路二段196巷18號","Administration":"交通部","Latitude":"24.74422973863230000","Longitude":"121.81663155555700000","Grade":"特優級","Type2":"女廁所","Type":"觀光地區及風景區"},
{"Country":"宜蘭縣","City":"蘇澳鎮","Village":"新城里","Number":"1000203008-A-00002","Name":"蘇澳服務區女廁","Address":"蘇澳鎮蘇新路101號","Administration":"交通部","Latitude":"24.61952012961910000","Longitude":"121.81477546691900000","Grade":"特優級","Type2":"女廁所","Type":"公路車站服務區及休息站"}...]
https://github.com/kevin6449/find_taiwan_toilet
台灣好廁上架後,發現google語音辨識都把”台灣好廁”辨識成”台灣好測”,大家上架前要用語音辨識看看,如果語音辨識不行,就快改名字哦。