Finding the fastest hospital in Dhaka with AI and Geoapify: MCP vs. OpenAPI
Описание и применение
Проект демонстрирует, как AI‑агент и CLI, использующие Geoapify MCP и OpenAPI, корректно определяют ближайшую к пользователю больницу в Дакке, учитывая реальные условия движения.
Задача
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