Skip to content

Commit

Permalink
Audio: Show the actual lat and lon instead of "Object"
Browse files Browse the repository at this point in the history
  • Loading branch information
mjs committed Aug 13, 2018
1 parent f94f34a commit 13fc853
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion public/javascripts/viewAudioRecording.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,13 @@ function getStartTimeText() {
}

function getLocationText() {
return recording.location;
const loc = recording.location;
if (typeof loc === 'object') {
var latitude = loc.coordinates[0];
var longitude = loc.coordinates[1];
return latitude + ', ' + longitude;
}
return "unknown";
}

function getPlayerSource(player) {
Expand Down

0 comments on commit 13fc853

Please sign in to comment.