首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏一“技”之长

    iOS原生地图开发进阶——使用导航和附近兴趣点检索

    地点节点类,包含此节点的许多地点信息,如下: @interface MKMapItem : NSObject //当前节点的地点信息对象 @property (nonatomic, readonly)  *)source NS_AVAILABLE(10_9, 6_0); - (void)setSource:(MKMapItem *)source NS_AVAILABLE(10_9, 7_0); //目的地节点 - (MKMapItem *)destination NS_AVAILABLE(10_9, 6_0); - (void)setDestination:(MKMapItem *)destination   *source;//起点 @property (nonatomic, readonly) MKMapItem *destination;//终点 @property (nonatomic, readonly  * fromItem = [[MKMapItem alloc]initWithPlacemark:fromPlace];     MKMapItem * toItem = [[MKMapItem alloc

    1.3K40发布于 2018-08-16
  • 来自专栏全栈程序员必看

    IOS-导航路线_iphone导航

    *startItem = [[MKMapItem alloc] initWithPlacemark:startPlacemark];; 85 86 // 0.2创建终点 87 MKPlacemark *endPlacemark = [[MKPlacemark alloc] initWithPlacemark:endCLPlacemark]; 88 MKMapItem *endItem = [[MKMapItem *endMKPlacemark = [[MKPlacemark alloc] initWithPlacemark:endCLPlacemark]; 95 MKMapItem *endItem = [ [MKMapItem alloc] initWithPlacemark:endMKPlacemark]; 96 97 98 // 0.创建request对象 99 MKDirectionsRequest *endMKPlacemark = [[MKPlacemark alloc] initWithPlacemark:endCLPlacemark]; 105 MKMapItem *endItem = [

    1K20编辑于 2022-09-20
  • 来自专栏日常技术分享

    iOS 调用苹果自带地图导航不准确问题解决

    CLLocationCoordinate2D amapcoord = AMapCoordinateConvert(loc, AMapCoordinateTypeGPS); //用户位置 MKMapItem *currentLoc = [MKMapItem mapItemForCurrentLocation]; //终点位置 MKMapItem *toLocation = [[MKMapItem MKLaunchOptionsShowsTrafficKey : @(YES) }; [MKMapItem

    4.2K10发布于 2018-12-14
  • 来自专栏iOS开发~

    iOS_调起各个地图软件

    + (void)openAppleMapWithToCoor:(CLLocationCoordinate2D)toCoor targetName:(NSString *)targetName { MKMapItem *location = [MKMapItem mapItemForCurrentLocation]; CLLocationCoordinate2D gc02Coor = [TQLocationConverter MKPlacemark *placemark = [[MKPlacemark alloc] initWithCoordinate:gc02Coor addressDictionary:nil]; MKMapItem *toLocation = [[MKMapItem alloc] initWithPlacemark:placemark]; toLocation.name = targetName; NSArray MKMapTypeStandard), MKLaunchOptionsShowsTrafficKey:@YES}; //打开苹果自身地图应用,并呈现特定的item [MKMapItem

    52310编辑于 2022-07-20
  • 来自专栏滕先生的博客

    地图相关 MapKit框架介绍MKMapView控件对象的属性和方法MKAnnotation 大头针模型类大头针view显示类:MKPinAnnotationView 继承于 MKAnnotation

    对象,作为终点位置 调用open类方法,打开系统自带地图从用户位置导航到指定的地点 MKMapItem 就是地图上的一个点 + (BOOL)openMapsWithItems:(NSArray<MKMapItem 创建一个MKMapItem MKMapItem *destinationItem = [[MKMapItem alloc] initWithPlacemark:mkpm]; MKLaunchOptionsMapTypeKey : @(MKMapTypeHybrid), MKLaunchOptionsShowsTrafficKey : @(YES)}; [MKMapItem MKMapItem *destinationItem = [[MKMapItem alloc] initWithPlacemark:mkpm]; //6.2 创建一个起点 MKMapItem(当前位置) MKMapItem *souceItem = [MKMapItem mapItemForCurrentLocation]; //7.

    5.7K70发布于 2018-05-18
  • 来自专栏日常技术分享

    ios 跳转第三方App实现导航

    CLLocationCoordinate2D loc = CLLocationCoordinate2DMake(lat.doubleValue, lng.doubleValue); //用户位置 MKMapItem *currentLoc = [MKMapItem mapItemForCurrentLocation]; //终点位置 MKMapItem *toLocation = [[MKMapItem MKLaunchOptionsShowsTrafficKey : @(YES) }; [MKMapItem

    2.8K30发布于 2018-09-13
  • 来自专栏编程语言

    Swift 打开三方地图 腾讯地图、百度地图、高德地图、Apple 地图

    String) { let loc = CLLocationCoordinate2DMake(lat, lng) let currentLocation = MKMapItem.forCurrentLocation () let toLocation = MKMapItem(placemark:MKPlacemark(coordinate:loc,addressDictionary:nil)) toLocation.name = destination let boo = MKMapItem.openMaps(with: [currentLocation,toLocation

    4.1K20发布于 2020-09-11
  • 来自专栏hrscy

    iOS百度地图开发之路径规划

    CLLocationCoordinate2DMake([self.mendDetail.dimensions doubleValue], [self.mendDetail.longitude doubleValue]); MKMapItem *currentLocation = [MKMapItem mapItemForCurrentLocation]; MKMapItem *toLocation = [[MKMapItem alloc initWithCoordinate:endCoor addressDictionary:nil]]; toLocation.name = self.mendDetail.shopName; [MKMapItem

    1.4K30发布于 2018-08-30
  • 来自专栏iOSDevLog

    ARKit和CoreLocation:第一部分

    destinationLocation.coordinate.latitude, longitude: destinationLocation.coordinate.longitude)) request.destination = MKMapItem.init (placemark: placeMark) request.source = MKMapItem.forCurrentLocation() request.requestsAlternateRoutes print(step.distance) // 1.0 print(step.instructions) // Proceed to 7th Ave MKMapItem:地图上的兴趣点。

    3.1K20发布于 2018-09-20
  • 来自专栏正则

    架构之路 (六) —— VIPER架构模式(二)

    container.encode(id, forKey: .id) } } extension Waypoint: Identifiable {} extension Waypoint { var mapItem: MKMapItem { return MKMapItem(placemark: MKPlacemark(coordinate: location)) } } extension CLLocationCoordinate2D

    1.5K10发布于 2021-09-04
  • 来自专栏一“技”之长

    iOS开发之EventKit框架的应用

    (instancetype)locationWithTitle:(NSString *)title; // 通过地图点创建 + (instancetype)locationWithMapItem:(MKMapItem

    4.7K51发布于 2019-07-01
领券