如何用彩色线连接 Mkmapview 内的 2 个注释?
最佳答案
Google 方向 API 可用于此目的...传递出发地和目的地位置
//http://maps.googleapis.com/maps/api/directions/jsonorigin=origin_place&destination=destination_place&waypoints=Charlestown,MA|Lexington,MA&sensor=false
它将给出您已解析并拉取坐标的 JSON 响应。用它画一条线
self.routeLine = [MKPolyline polylineWithPoints:arrPoints count:routeArray.count];
关于iphone - 如何在 MKMapView 内用彩色线连接 2 个注释?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13269820/