iOS 高德地图搜索公交线路

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,486评论 0 10
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 10,066评论 0 23
  • 一段时间过去 几天下来 突然发现自己所谓的单纯 就跟傻子一样 逢场作戏 真真假假 似乎很正常化 不应该值得自己过度...
    箫姈筝阅读 263评论 0 0