You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ParseGeoPoint.ts
+11-9Lines changed: 11 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,3 @@
1
-
/**
2
-
* @flow
3
-
*/
4
-
5
1
/**
6
2
* Creates a new GeoPoint with any of the following forms:<br>
7
3
* <pre>
@@ -102,7 +98,7 @@ class ParseGeoPoint {
102
98
};
103
99
}
104
100
105
-
equals(other: mixed): boolean{
101
+
equals(other: any): boolean{
106
102
return(
107
103
otherinstanceofParseGeoPoint&&
108
104
this.latitude===other.latitude&&
@@ -183,12 +179,18 @@ class ParseGeoPoint {
183
179
/**
184
180
* Creates a GeoPoint with the user's current location, if available.
185
181
*
182
+
* @param {object} options The options.
183
+
* @param {boolean} [options.enableHighAccuracy=false] A boolean value that indicates the application would like to receive the best possible results. If true and if the device is able to provide a more accurate position, it will do so. Note that this can result in slower response times or increased power consumption (with a GPS chip on a mobile device for example). On the other hand, if false, the device can take the liberty to save resources by responding more quickly and/or using less power. Default: false.
184
+
* @param {number} [options.timeout=Infinity] A positive long value representing the maximum length of time (in milliseconds) the device is allowed to take in order to return a position. The default value is Infinity, meaning that getCurrentPosition() won't return until the position is available.
185
+
* @param {number} [options.maximumAge=0] A positive long value indicating the maximum age in milliseconds of a possible cached position that is acceptable to return. If set to 0, it means that the device cannot use a cached position and must attempt to retrieve the real current position. If set to Infinity the device must return a cached position regardless of its age. Default: 0.
186
186
* @static
187
-
* @returns {Parse.GeoPoint} User's current location
187
+
* @returns {Promise<Parse.GeoPoint>} User's current location
* Creates a GeoPoint with the user's current location, if available.
88
+
*
89
+
* @param {object} options The options.
90
+
* @param {boolean} [options.enableHighAccuracy=false] A boolean value that indicates the application would like to receive the best possible results. If true and if the device is able to provide a more accurate position, it will do so. Note that this can result in slower response times or increased power consumption (with a GPS chip on a mobile device for example). On the other hand, if false, the device can take the liberty to save resources by responding more quickly and/or using less power. Default: false.
91
+
* @param {number} [options.timeout=Infinity] A positive long value representing the maximum length of time (in milliseconds) the device is allowed to take in order to return a position. The default value is Infinity, meaning that getCurrentPosition() won't return until the position is available.
92
+
* @param {number} [options.maximumAge=0] A positive long value indicating the maximum age in milliseconds of a possible cached position that is acceptable to return. If set to 0, it means that the device cannot use a cached position and must attempt to retrieve the real current position. If set to Infinity the device must return a cached position regardless of its age. Default: 0.
93
+
* @static
94
+
* @returns {Promise<Parse.GeoPoint>} User's current location
0 commit comments