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
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -180,9 +180,15 @@ class ParseGeoPoint {
180
180
* Creates a GeoPoint with the user's current location, if available.
181
181
*
182
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.
183
+
* @param {boolean} [options.enableHighAccuracy=false] A boolean value that indicates the application would like to receive the best possible results.
184
+
* If true and if the device is able to provide a more accurate position, it will do so.
185
+
* Note that this can result in slower response times or increased power consumption (with a GPS chip on a mobile device for example).
186
+
* 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.
187
+
* @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.
188
+
* The default value is Infinity, meaning that getCurrentPosition() won't return until the position is available.
189
+
* @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.
190
+
* If set to 0, it means that the device cannot use a cached position and must attempt to retrieve the real current position.
191
+
* If set to Infinity the device must return a cached position regardless of its age. Default: 0.
186
192
* @static
187
193
* @returns {Promise<Parse.GeoPoint>} User's current location
0 commit comments