iOS 高德地图搜索公交线路

import

import

AMapSearchDelegate

self.search = [[AMapSearchAPI alloc] init];
self.search.delegate = self;
AMapBusStopSearchRequest *request = [AMapBusStopSearchRequest new];
// request.keywords = @"阿什";
// [self.search AMapBusStopSearch:request];
//- (void)onBusStopSearchDone:(AMapBusStopSearchRequest *)request response:(AMapBusStopSearchResponse *)response
//{
// for (AMapBusStop *bt in response.busstops) {
// for (AMapBusLine *line in bt.buslines) {
// NSLog(@"%@", line.name);
//
// }
// }
// if (response.busstops.count == 0)
// {
// return;
// }

你可能感兴趣的:(iOS 高德地图搜索公交线路)