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

Stuck on a Cordova issue?

Installation

Community Enterprise
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

Supported Platforms

  • Android
  • iOS

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));