T:可以把地點批次丟進google map,爬出路線時間和距離,排序後再填入停靠點中生成路線。
Be: 如果不一定要用google maps介面,可以考慮用Vue, leaflet, openstreetmap, leaflet-routing-machine,搭配AI生成的TSP演算法。請參考:此chatGPT-4o提供的多地點最佳路線規劃對話
function GOOGLEMAPS_GEOCODE(address) {
if (address === "") return ["", ""];
var geocoder = Maps.newGeocoder().geocode(address);
if (geocoder.status === "OK") {
var result = geocoder.results[0].geometry.location;
return [[result.lat, result.lng]]; // ✅ 改成巢狀陣列,輸出一「橫列」兩欄
} else {
return [["", ""]];
}
}
把地址或地點轉成經緯度
設定起點、終點,然後點選左下角的 Find Route
選 download 可以直接用 google map 打開
下一步,是否有更自動化的流程?(API?)
我沒有用到API,做法是
我也做出了一份可讓長照機構個案管理師們,簡易安排規劃個案訪視路線用的圖文操作範本,謝謝大家指導!
https://docs.google.com/spreadsheets/d/1PjO740DeiBP9K-Jesk3ZL7lHLw3HixRlhhLfqh1OCWQ/edit?gid=860136852#gid=860136852
ichieh 太棒了吧!!!!!!
本次活動聚焦於協助解決來自台東消防局 Josh 提出的實際問題:
如何透過 AI 工具協助消防安檢路線的最佳化安排,以克服 Google Maps 在地址轉換與大量標記限制上的困難,同時減少人工作業負擔,並探索未來批次通知業者的可能自動化流程。
Josh 的現有作法與構想
Jodi 的補充情境
Camila 的作法
任翔的示範與建議
本次活動提供了從「現成工具快速套用」到「AI 協助開發應用程式」的多元解法,參與者可根據自身背景選擇入手點。
同時,也提醒在使用 API 和部署應用時需特別注意資料安全、金鑰保護與潛在費用,並建議在進行部署前先尋求經驗者協助或二次驗證。
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing