当我用这个的时候
this.nativeGeocoder.reverseGeocode(parseFloat(this.myLat),parseFloat( this.myLong))
.then((result: NativeGeocoderReverseResult) =>
{ console.log('The address is ' + result.street + ' in ' + result.countryCode)在一个叫做构造函数的函数中-
地址是未命名的路in result.street不工作!
发布于 2018-03-03 15:28:20
您必须将result.street更新为result.street,这样才能工作。
这
this.nativeGeocoder.reverseGeocode(parseFloat(this.myLat),parseFloat( this.myLong))
.then((result: NativeGeocoderReverseResult) =>
{ console.log('The address is ' + result.street + ' in ' + result.countryCode)至
this.nativeGeocoder.reverseGeocode(parseFloat(this.myLat),parseFloat( this.myLong))
.then((result: NativeGeocoderReverseResult) =>
{ console.log('The address is ' + result[0].street + ' in ' + result[0].countryCode)https://stackoverflow.com/questions/44276893
复制相似问题