Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Refine geolocation params to (try to) avoid bugs #1087

Merged
merged 1 commit into from
May 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/adapters/poi/specials/navigator_geolocalisation_poi.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const navigatorGeolocationStatus = {
UNKNOWN: 'unknown',
FORBIDDEN: 'forbidden',
};

export default class NavigatorGeolocalisationPoi extends Poi {
constructor() {
super('geolocalisation', _('Your position', 'direction'), 'geoloc');
Expand Down Expand Up @@ -40,7 +39,11 @@ export default class NavigatorGeolocalisationPoi extends Poi {
}
reject(error);
},
{ timeout: 3000 }
{
timeout: 3000,
maximumAge: 300000, // five minutes
enableHighAccuracy: true,
}
);
});
}
Expand Down