Finding the fastest hospital in Dhaka with AI and Geoapify: MCP vs. OpenAPI
说明与用途
该项目展示了如何使用 Geoapify MCP 和 OpenAPI 的 AI 代理和 CLI,准确识别达卡最快到达的医院,纠正基于地图的误解。
问题
In Dhaka, the hospital that looks closest on a map is often not the one you can reach first due to one‑way roads, canals, rivers and dense traffic.
结果
The AI agent and CLI consistently identified the fastest hospital by travel time, correcting common map‑based misconceptions and demonstrating the effectiveness of Geoapify’s MCP tools for emergency routing.
工作流
- 1. Geocode the user’s address with geocode_address.
- 2. Search nearby hospitals with search_places.
- 3. Calculate travel times to up to 10 candidates using calculate_route_matrix with traffic=approximated.
- 4. Retrieve a detailed route with calculate_route (include_instructions:true).
- 5. Return the fastest hospital and route details to the user.
证据
In Dhaka, the hospital that looks closest on a map is often not the one you can reach first.
The answer it gave: Emergency? Call 999. Fastest by car: AALOK HEALTHCARE (~2 min, 254 m)...
Step 3 is the important one. Instead of sorting by straight‑line distance, we ask for travel times from one source to up to 10 candidates in a single request, and sort by time.
- 记录日期: 2026-11-01T21:58:54.524Z