Skip to content

Commit

Permalink
feat: round to 5 decimal places, not 4
Browse files Browse the repository at this point in the history
  • Loading branch information
tm-ruxandra committed Jul 8, 2024
1 parent faa15a9 commit cb0ea80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-client/src/model/elevation/elevationFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ import {Coords} from 'terraso-client-shared/types';
import {ElevationKey} from 'terraso-mobile-client/model/elevation/elevationTypes';

export const elevationKey = (coords: Coords): ElevationKey => {
return `(${coords.longitude.toFixed(4)}, ${coords.latitude.toFixed(4)})` as ElevationKey;
return `(${coords.longitude.toFixed(5)}, ${coords.latitude.toFixed(5)})` as ElevationKey;
};

0 comments on commit cb0ea80

Please sign in to comment.