Skip to content

Commit

Permalink
Merge pull request #281 from LL08-MathematicalModelling-dowell/ft-pranai
Browse files Browse the repository at this point in the history
changed the locxation retrieval process
  • Loading branch information
Pranai-1 authored Jun 11, 2024
2 parents 1d39678 + 1d8b27d commit d2ec76c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/scales/report/Booth.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,11 @@ function degreesToRadians(degrees) {
const detailedReport = response.data.response.detailed_report;



if (Array.isArray(detailedReport) && detailedReport.length > 0) {

const closestReport = findClosestLocation(detailedReport, browserLatitude, browserLongitude);
const closestReport = detailedReport[detailedReport.length-1]
//findClosestLocation(detailedReport, browserLatitude, browserLongitude);

setLatitude(closestReport.lat);
setLongitude(closestReport.long);
Expand Down

0 comments on commit d2ec76c

Please sign in to comment.