Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 504 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 504 Bytes

NativeGeo

Cordova plugin to get current loction using Native Location Manager.


##### Platforms
  • Android

Installation
cordova plugin add https://github.com/uzumakinaruto123/NativeGeo.git
Usage
declare var NativeGeo:any;

...

NativeGeo.getCurrentLocation((res)=>{
	console.log(res.latitude+', '+res.longitude);
},(err)=>{
	console.log('Error getting location', err);
});
Note:

Application should have Location permissions to get current location