Features
- Natural language route query: query the driving distance and time between two locations
- Geocoding: convert an address into latitude and longitude coordinates
- Driving route planning: plan the optimal driving route
- Multi-strategy planning: supports multiple strategies such as time priority, distance priority, avoid tolls, and avoid highways
Usage
Basic usage
Users can ask route questions using natural language:
- "How long does it take to get from Guangqi Park to Park Hyde?"
- "How far is it from Shanghai Hongqiao to Pudong Airport?"
- "How long does it take to drive from home to the office?"
- "Help me plan a route from A to B, avoiding highways"
Parameters
origin- Start point (address or latitude/longitude)destination- End point (address or latitude/longitude)city- City (optional, default: Shanghai)strategy- Planning strategy- 0: Speed priority (default)
- 1: Cost priority (avoid tolls)
- 2: Conventional fastest
- 4: Avoid congestion
- 10: Comprehensive recommendation (avoid congestion + time priority)
- 13: Avoid highways
- 14: Avoid tolls
- 19: Highway priority
Return format
📍 光启园 → 公园海德
🚗 距离:XX.X km
⏱️ 预计时间:XX 分钟
💡 路线概况:XX条主路,XX个红绿灯
💰 预计路费:XX 元
Notes
- Requires the AMAP_API_KEY environment variable or the Amap API Key set in the configuration file
- Queries in the Shanghai area are recommended; other cities require specifying the city parameter