Disfactory / about.disfactory.tw

The legacy landing page of Disfactory
https://disfactory.github.io/about.disfactory.tw/
MIT License
6 stars 4 forks source link

「在哪裡」功能優化 #68

Open deeper747 opened 2 years ago

deeper747 commented 2 years ago

點擊「在哪裡」時,現在會待到彰化縣鹿港鎮處。 想要讓對方選了什麼鄉鎮或縣市查詢,就跳到該縣市鄉鎮的中心點。

aelcenganda commented 2 years ago

我覺得這在下週三之前工太多了

dyfu95 commented 2 years ago

點擊「在哪裡」時,現在會待到彰化縣鹿港鎮處 剛測了一下,應該不是帶到彰化縣鹿港鎮,而是使用者目前位置。

剛有做點survey,可以在使用者輸入區碼後,去打這支api https://api.opencube.tw/twzipcode 比如說,如果要取得區碼105的經緯度:https://api.opencube.tw/twzipcode?zip_code=105 如果成功取得經緯度,就將「在哪裡」連結的經緯度,換成上述取得的經緯度。 如果無法取得的話,則維持原樣(帶到目前位置)。

因為目前about page使用的框架寫法(Vue Composition API)我還不是很熟,所以過年前應該都沒時間去改