2.0.2 • Published 7 years ago
react-native-run-amap v2.0.2
高德地图的定位
iOS端
plist 权限
依赖: libstdc++.6.0.9.tbd Security.framework libstdc++.tbd libc++.tbd libz.tbd CoreLocation.framework CoreTelephony.framework SystemConfiguration.framework JavaScriptCore.framework
react-native-run-amap中lib 里的framework
import { Geolocation } from 'react-native-run-amap';
location = async (reGeocode) => {
let result = await Geolocation.getLocation(reGeocode);
console.log('result-----');
console.log(result);
console.log('end');
}
逆地理结果
@"address":regeocode.formattedAddress,
@"citycode":regeocode.citycode,
@"adcode":regeocode.adcode,
@"accuracy":
不带逆地理结果
@{@"latitude":@(location.coordinate.latitude),
@"longitude":@(location.coordinate.longitude),
@"adcode":@"",
@"accuracy":@(location.horizontalAccuracy)}