Merge branch 'master' of github.com:driftyco/ionic-native

This commit is contained in:
Ibby 2017-03-22 19:15:26 -04:00
commit fa047d2171

View File

@ -122,15 +122,20 @@ export interface GeolocationOptions {
* ```typescript
* import { Geolocation } from '@ionic-native/geolocation';
*
* ...
*
* Geolocation.getCurrentPosition().then((resp) => {
* constructor(private geolocation: Geolocation) {}
*
* ...
*
* this.geolocation.getCurrentPosition().then((resp) => {
* // resp.coords.latitude
* // resp.coords.longitude
* }).catch((error) => {
* console.log('Error getting location', error);
* });
*
* let watch = Geolocation.watchPosition();
* let watch = this.geolocation.watchPosition();
* watch.subscribe((data) => {
* // data can be a set of coordinates, or an error (if an error occurred).
* // data.coords.latitude