美文网首页
iOS 高德地图搜索公交线路

iOS 高德地图搜索公交线路

作者: J_HX | 来源:发表于2019-11-25 15:48 被阅读0次

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;
// }

相关文章

网友评论

      本文标题:iOS 高德地图搜索公交线路

      本文链接:https://www.haomeiwen.com/subject/rdkjwctx.html