static current() {
    return new Promise(function(resolve, reject) {
      navigator.geolocation.getCurrentPosition(function(location) {
        resolve(new GeoPoint(location.coords.latitude, location.coords.longitude));
      }, function(error) {
        reject(error);
      });
    });
  }
/**
   * Creates a GeoPoint with the user's current location, if available.
   * @return {Promise<GeoPoint>} A promise that will be resolved with a GeoPoint
   */
Creates a GeoPoint with the user's current location, if available.
@return {Promise} A promise that will be resolved with a GeoPoint
Creates a GeoPoint with the user ' s current location if available . @return { Promise } A promise that will be resolved with a GeoPoint
static current() {
    return new Promise(function(resolve, reject) {
      navigator.geolocation.getCurrentPosition(function(location) {
        resolve(new GeoPoint(location.coords.latitude, location.coords.longitude));
      }, function(error) {
        reject(error);
      });
    });
  }
static current ( ) { return new Promise ( function ( resolve , reject ) { navigator . geolocation . getCurrentPosition ( function ( location ) { resolve ( new GeoPoint ( location . coords . latitude , location . coords . longitude ) ) ; } , function ( error ) { reject ( error ) ; } ) ; } ) ; }
Creates a GeoPoint with the user's current location, if available.
Creates a GeoPoint with the user ' s current location if available .