Flutter教程

Gao De Location

Contents

Because the original GPS positioning uses Google Browser positioning, and Google withdraws from China, resulting in GPS Android positioning can not be positioned. Gaode location can directly return address informationGaode location can directly return address information

https://github.com/waliu/cordova-plugin-gaodelocation-chenyu.git

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic 高德定位Gao De Location插件的安装(Installation)

ionic cordova plugin add cordova-plugin-gaodelocation-chenyu npm install @ionic-native/gao-de-location
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/gao-de-location

Ionic 高德定位Gao De Location插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic 高德定位Gao De Location插件的用法(Usage)

import { GaoDeLocation } from '@ionic-native/gao-de-location/ngx';


constructor(private gaoDeLocation: GaoDeLocation) { }

this.gaoDeLocation.getCurrentPosition()
.then((res: PositionOptions) => console.log(res))
.catch((error) => console.error(error));