Skip to content

Commit

Permalink
Merge branch 'master' of github.com:driftyco/ionic-native
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Mar 22, 2017
2 parents 3154fea + 7b069a3 commit fa047d2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/@ionic-native/plugins/geolocation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa047d2

Please sign in to comment.