为了账号安全,请及时绑定邮箱和手机立即绑定

道路数据主要指的是 xxxxx道、xxxx路、xxxx街 ?请问该怎么实现?

道路数据主要指的是 xxxxx道、xxxx路、xxxx街 ?请问该怎么实现?

慕少森 2022-12-16 17:13:01
Android中,也就是说java实现,在百度地图定位位置后,怎么根据定位位置(可以有经纬度)获取附近的道路数据
查看完整描述

1 回答

?
萧十郎

TA贡献1815条经验 获得超13个赞

要先设置代理的

self.mapView.delegate = self;
[self.mapView setShowsUserLocation:YES];

这样以后你再看就可以在 - (void)mapViewDidStopLocatingUser:(BMKMapView *)mapView{} 监听了

比如移动到当前位置:

//定位完成后,移动到当前位置
- (void)mapView:(BMKMapView *)mapView didUpdateUserLocation:(BMKUserLocation *)userLocation{
CLLocationCoordinate2Dcoor;
coor.latitude = self.mapView.userLocation.coordinate.latitude;
coor.longitude = self.mapView.userLocation.coordinate.longitude;
[self.mapViewsetCenterCoordinate:coor animated:YES];
}

查看完整回答
反对 回复 2022-12-18
  • 1 回答
  • 0 关注
  • 177 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号