iOS 高德地图搜索公交线路
2019-11-25 本文已影响0人
J_HX
import <AMapFoundationKit/AMapFoundationKit.h>
import <AMapSearchKit/AMapSearchKit.h>
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;
// }