src/service/LocationBasedService.ts
Function getCurrentPosition
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getCurrentPosition(object: T | string, options: GeoOptions = {}): Promise<P> {
return new Promise((resolve, reject) => {
const maximumAge = options.maximumAge || Infinity;
options.timeout = options.timeout || 10000;
const uid = object instanceof DataObject ? object.uid : object;